Skip to content
Convertitive

RGB to HEX Color Converter

rgb(255, 107, 53) = #FF6B35

Convert RGB color values to hexadecimal color values exactly, via the canonical 8-bit sRGB representation. Every result you see is the same number the W3C CSS spec would produce — no proprietary adjustments, no perceptual fudging. Try the live converter below, or scan the reference table for twenty-five named colors and their RGBHEX pairs.

rgb(R, G, B) or just R, G, B with each value 0–255

#FF6B35

Six hex digits (#RRGGBB) or three digits (#RGB)

Preview
#FF6B35
Try

How to convert RGB color to hexadecimal color

  1. Paste or type your color

    Enter the RGB color above. Convertitive accepts rgb(r, g, b) or just r, g, b with each value 0–255.

  2. Read the HEX value

    The result appears the moment your input parses. For example, rgb(255, 107, 53) (Convertitive's coral accent) becomes #FF6B35.

  3. Copy and share

    Click the copy button to grab the result. The preview swatch lives-updates so you can sanity-check the conversion at a glance.

RGB to HEX reference table

Twenty-five well-known colors with their RGB and HEXrepresentations side by side. The swatches are rendered directly from the computed RGB, so what you see is exactly what you will ship.

NameRGBHEX
Blackrgb(0, 0, 0)#000000
Whitergb(255, 255, 255)#FFFFFF
Redrgb(255, 0, 0)#FF0000
Limergb(0, 255, 0)#00FF00
Bluergb(0, 0, 255)#0000FF
Yellowrgb(255, 255, 0)#FFFF00
Cyanrgb(0, 255, 255)#00FFFF
Magentargb(255, 0, 255)#FF00FF
Silverrgb(192, 192, 192)#C0C0C0
Grayrgb(128, 128, 128)#808080
Maroonrgb(128, 0, 0)#800000
Olivergb(128, 128, 0)#808000
Greenrgb(0, 128, 0)#008000
Tealrgb(0, 128, 128)#008080
Navyrgb(0, 0, 128)#000080
Purplergb(128, 0, 128)#800080
Orangergb(255, 165, 0)#FFA500
Pinkrgb(255, 192, 203)#FFC0CB
Goldrgb(255, 215, 0)#FFD700
Tomatorgb(255, 99, 71)#FF6347
Coralrgb(255, 127, 80)#FF7F50
Salmonrgb(250, 128, 114)#FA8072
Indigorgb(75, 0, 130)#4B0082
Chocolatergb(210, 105, 30)#D2691E
Crimsonrgb(220, 20, 60)#DC143C

Frequently asked questions

How do I convert RGB color to hexadecimal color?
Paste your RGB value into the input above. Convertitive parses it, maps it through 8-bit sRGB, and re-emits it in HEX. For example, rgb(255, 107, 53) becomes #FF6B35.
What is the exact HEX value of rgb(255, 107, 53)?
rgb(255, 107, 53) in RGB equals #FF6B35 in HEX.
Why might my RGB → HEX round-trip produce a slightly different value?
HEX stores 8 bits per channel, so converting through HEX introduces at most ±1 in any channel. For most UI work the difference is invisible.
Does this support transparency or alpha?
Not yet. The current version handles fully opaque colors only. RGBA/HSLA inputs are silently ignored beyond the first three channels. Alpha support is on the roadmap.
Are color names supported?
Not directly as input — but the reference table on every page shows twenty-five common CSS named colors with their RGB and HEX equivalents. Copy the value you want into the calculator above.
Why does the swatch sometimes look wrong on my screen?
Browsers handle color profiles differently. On most modern displays the rendered swatch matches the stored sRGB exactly. On wide-gamut displays without an active sRGB profile, very saturated colors may render slightly more vivid than the math implies.
Can I use these results in CSS directly?
Yes. Every output above is a valid CSS color expression. HEX values include the # prefix; RGB/HSL/HSV outputs are in the standard function form CSS accepts.
Are the conversions WCAG-accurate?
The conversions are mathematically exact within IEEE 754 double precision. WCAG contrast ratios require an additional sRGB-to-linear-luminance step that is not part of HEX/RGB/HSL/HSV conversions — Convertitive will ship a dedicated contrast checker later.

About RGB and HEX

RGB

RGB describes a color by its red, green, and blue channels — each on a 0–255 scale (8 bits per channel). It is what computer monitors and most digital cameras emit, and what every other web color format ultimately maps to.

HEX

HEX (hexadecimal) is the standard color notation on the web: a # followed by six hex digits, two per RGB channel. #FF0000 is pure red, #000000 is black, #FFFFFF is white. The 3-digit shorthand #F00 expands to #FF0000.

Other color converters