RGB to Hexadecimal Color Codes Chart

Use this helpful chart to convert RGB values to hexadecimal website code

Color swatches and samples
With so many colors to choose from, finding the right one can be hard.

When you are adding colors to a website, you are likely doing so with either RGBA color values or with good old fashioned hexadecimal code. While RGBA offers web designers some nice possibilities, mainly due to the inclusion of "alpha channel" transparency. Still, not all browers support RGBA (mainly older version of IE do not have RGBA support), which means that hexadecimal code is still the most popular way to add colors to a website via style sheets.

Hexadecimal color codes are made up of 3 groups with 2 digits in each. This is preceded by the # symbol. For instance, #000000 is the code for the color black. The RGB (red, green, blue) value for this color is R: 0, B: 0, G: 0.  

In this instance, it is an easy conversion because black is all zeros either way - but other colors are not as straightforward. For instance, the RGB for a bold red is R: 255, G: 0, B: 0 and the hex code is #ff0000.  The R value translates to the ff, while both the G and B values are zeroes.  All RGB colors can be converting in this way.

This table will help you convert RGB codes to Hex codes quickly to edit colors in various locations.

RGBHexRGBHexRGBHexRGBHexRGBHex
1015234103671549A205CD
2025335104681559B206CE
3035436105691569C207CF
40455371066A1579D208D0
50556381076B1589E209D1
60657391086C1599F210D2
707583A1096D160A0211D3
808593B1106E161A1212D4
909603C1116F162A2213D5
100A613D11270163A3214D6
110B623E11371164A4215D7
120C633F11472165A5216D8
130D644011573166A6217D9
140E654111674167A7218DA
150F664211775168A8219DB
1610674311876169A9220DC
1711684411977170AA221DD
1812694512078171AB222DE
1913704612179172AC223DF
201471471227A173AD224E0
211572481237B174AE225E1
221673491247C175AF226E2
2317744A1257D176B0227E3
2418754B1267E177B1228E4
2519764C1277F178B2229E5
261A774D12880179B3230E6
271B784E12981180B4231E7
281C794F13082181B5232E8
291D805013183182B6233E9
301E815113284183B7234EA
311F825213385184B8235EB
3220835313486185B9236EC
3321845413587186BA237ED
3422855513688187BB238EE
3523865613789188BC239EF
362487571388A189BD240F0
372588581398B190BE241F1
382689591408C191BF242F2
3927905A1418D192C0243F3
4028915B1428E193C1244F4
4129925C1438F194C2245F5
422A935D14490195C3246F6
432B945E14591196C4247F7
442C955F14692197C5248F8
452D966014793198C6249F9
462E976114894199C7250FA
472F986214995200C8251FB
4830996315096201C9252FC
49311006415197202CA253FD
50321016515298203CB254FE
51331026615399204CC255FF

 

Browser Safe Colors CSS Color Keywords | SVG Color Keywords | RGB to Hex Conversion Chart Color Information Links

Original article by Jennifer Krynin, edited by Jeremy Girard

Format
mla apa chicago
Your Citation
Girard, Jeremy. "RGB to Hexadecimal Color Codes Chart." ThoughtCo, Jul. 7, 2016, thoughtco.com/rgb-to-hexadecimal-color-codes-chart-4061370. Girard, Jeremy. (2016, July 7). RGB to Hexadecimal Color Codes Chart. Retrieved from https://www.thoughtco.com/rgb-to-hexadecimal-color-codes-chart-4061370 Girard, Jeremy. "RGB to Hexadecimal Color Codes Chart." ThoughtCo. https://www.thoughtco.com/rgb-to-hexadecimal-color-codes-chart-4061370 (accessed December 17, 2017).