RGB to HEX Converter
Turn red, green and blue values from 0 to 255 into a HEX color code ready for CSS and design apps.
rgb input
Result · HEX
#FF3D72
RGB
rgb(255, 61, 114)
HSL
hsl(344, 100%, 62%)
HSV
hsv(344, 76%, 100%)
CMYK
cmyk(0%, 76%, 55%, 0%)
How to use: RGB to HEX
- 1
Enter a color
Type a color code or choose a color with the picker — every field accepts the format it shows.
- 2
See it converted
The result updates instantly as you type, together with a live preview of the color.
- 3
Copy the code
Copy the value you need with one click and paste it into your design, CSS or print settings.
About RGB and HEX
RGB describes a screen color by the brightness of its three light channels — red, green and blue — each from 0 to 255, for example rgb(255, 61, 114). HEX writes exactly the same three numbers in base 16 and joins them after a # sign: 255 becomes FF, 61 becomes 3D and 114 becomes 72, giving #FF3D72. The two notations describe the same thing, so the conversion is exact.
RGB is what graphics editors and screenshot tools usually report, while HEX is the shortest way to paste a color into CSS, HTML, Figma or a brand guide. Enter the three channel values or pick a color in the dialog and copy the HEX result; HSL, HSV and CMYK are shown alongside. Tip: when each pair in a HEX code has two identical digits, as in #FF3366, CSS also accepts the three-digit short form #F36.
Everything runs locally in your browser — your images are never uploaded to a server.