About the RGB to HEX Converter
The RGB to HEX Converter turns three channel values (red, green and blue, each 0–255) into a six-digit hexadecimal colour code for CSS and design tools, in upper and lower case.
How to use the RGB to HEX Converter
- Enter the red, green and blue values.
- Copy the HEX code.
Example
Pure colours
rgb(255, 0, 0) = #FF0000 (red); rgb(0, 0, 0) = #000000 (black); rgb(255, 255, 255) = #FFFFFF (white).
Frequently asked questions
What range do values use?
0 to 255 for each channel. Values outside that range are rejected.
Why do I get a different HEX in my design tool?
Check that both use the same colour profile; values exported from different profiles can shift slightly.
Can I convert percentages?
Multiply the percentage by 2.55 first: 50% ≈ 128.