Skip to content
ToolHub

RGB to HEX Converter

Convert red, green and blue values (0–255) to a HEX colour code.

🎨
ColorTools Pro
Color Tools & Generators
✨ Result
—
—
History 0
🎨
No colors yet
Your history will appear here

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

  1. Enter the red, green and blue values.
  2. 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.

Use ↑ ↓ to move, Enter to open.