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.
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 RGB ↔ HEX pairs.
rgb(R, G, B) or just R, G, B with each value 0–255
Six hex digits (#RRGGBB) or three digits (#RGB)
Enter the RGB color above. Convertitive accepts rgb(r, g, b) or just r, g, b with each value 0–255.
The result appears the moment your input parses. For example, rgb(255, 107, 53) (Convertitive's coral accent) becomes #FF6B35.
Click the copy button to grab the result. The preview swatch lives-updates so you can sanity-check the conversion at a glance.
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.
| Name | RGB | HEX | |
|---|---|---|---|
| Black | rgb(0, 0, 0) | #000000 | |
| White | rgb(255, 255, 255) | #FFFFFF | |
| Red | rgb(255, 0, 0) | #FF0000 | |
| Lime | rgb(0, 255, 0) | #00FF00 | |
| Blue | rgb(0, 0, 255) | #0000FF | |
| Yellow | rgb(255, 255, 0) | #FFFF00 | |
| Cyan | rgb(0, 255, 255) | #00FFFF | |
| Magenta | rgb(255, 0, 255) | #FF00FF | |
| Silver | rgb(192, 192, 192) | #C0C0C0 | |
| Gray | rgb(128, 128, 128) | #808080 | |
| Maroon | rgb(128, 0, 0) | #800000 | |
| Olive | rgb(128, 128, 0) | #808000 | |
| Green | rgb(0, 128, 0) | #008000 | |
| Teal | rgb(0, 128, 128) | #008080 | |
| Navy | rgb(0, 0, 128) | #000080 | |
| Purple | rgb(128, 0, 128) | #800080 | |
| Orange | rgb(255, 165, 0) | #FFA500 | |
| Pink | rgb(255, 192, 203) | #FFC0CB | |
| Gold | rgb(255, 215, 0) | #FFD700 | |
| Tomato | rgb(255, 99, 71) | #FF6347 | |
| Coral | rgb(255, 127, 80) | #FF7F50 | |
| Salmon | rgb(250, 128, 114) | #FA8072 | |
| Indigo | rgb(75, 0, 130) | #4B0082 | |
| Chocolate | rgb(210, 105, 30) | #D2691E | |
| Crimson | rgb(220, 20, 60) | #DC143C |
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 (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.