RGB to HEX Converter

Paste a RGB value and get the exact HEX equivalent instantly — plus every other color format, a gamut check and one-click copy.

Gamut: srgb

Common RGBHEX values

Vivid Indigorgb(99 102 241)#6366f1Details
Vivid Redrgb(239 68 68)#ef4444Details
Orangergb(249 115 22)#f97316Details
Light Yellowrgb(234 179 8)#eab308Details
Vivid Greenrgb(34 197 94)#22c55eDetails
Tealrgb(20 184 166)#14b8a6Details
Sky Bluergb(14 165 233)#0ea5e9Details
Bluergb(59 130 246)#3b82f6Details
Vivid Violetrgb(139 92 246)#8b5cf6Details
Vivid Pinkrgb(236 72 153)#ec4899Details
Medium Grayrgb(120 113 108)#78716cDetails
Blackrgb(0 0 0)#000000Details

Why HEX is still the handoff format

HEX is compact, unambiguous and understood by every design tool, so it remains the best way to write down a fixed brand color or paste a value into Figma.

Shortening a HEX code

When each pair repeats — #66ccff — you can shorten it to three digits, #6cf. Most colors cannot be shortened without shifting them.

Next step: make it manipulable

Once you have the HEX, convert it to OKLCH to build tints, shades and accessible text pairs from it programmatically.

Frequently asked questions

How do I turn RGB into HEX manually?
Convert each 0–255 channel to two hexadecimal digits: 99 becomes 63, 102 becomes 66, 241 becomes f1, giving #6366f1. Pad single digits with a leading zero.
Which RGB notations does this accept?
rgb(99 102 241), rgb(99, 102, 241), rgba(99, 102, 241, 0.8) and percentage channels all parse.
Does HEX support transparency?
Yes, through an optional fourth pair: #6366f1cc is roughly 80% opaque. Support is universal in modern browsers.

Related tools