Convert a single decimal value (0β255) into its hex byte representation (two hex digits). This is useful when you need to embed channel values into CSS variables, design tokens, or debugging output that expects byte-level hex.
How it works
A hex byte is a base-16 number that ranges from 00 to FF.
This converter takes an integer in base-10 and outputs the equivalent two-digit hex form.
When to use it
- Convert numeric channel values into compact hex tokens.
- Inspect or generate payloads that represent colors as bytes.
- Convert between decimal and hex for scripts or documentation.
Limitations
Accepts only integers in the range 0β255. It does not generate full CSS colors like #RRGGBB; use the HEXβRGB subtools for that.
Example
Input 123 β Output 7b, ready for reuse.