Color value converter. Enter a color in any of these formats - HEX/HEXA, RGB/RGBA, HSL/HSLA, HSV/HSVA, or CMYK/CMYKA - and get all equivalent representations (with alpha) instantly, handy for designers and developers
The Color Converter lets you convert between the major color models. Enter a color value in any supported format - HEX/HEXA, RGB/RGBA, HSL/HSLA, HSV/HSVA, or CMYK/CMYKA - and the tool automatically detects it and outputs all equivalent representations, preserving the alpha (transparency) channel.
For example, entering #2e8b5799 instantly yields #2e8b57, rgb(46,139,87), rgba(46,139,87,0.60), hsl(146,50%,36%), hsv(146,67%,55%), cmyk(67,0,37,45), plus their alpha variants. Whether you are picking colors for the front end, matching a palette, or preparing print colors, you can compare every format in one place without manual calculation.
The converter is built around a "unified intermediate model". First, any input color is parsed into RGB (0-255) channels plus an alpha value (0-1). Every other format is then derived from this intermediate value: HEX is produced by converting each RGB channel from decimal to hexadecimal; HSL/HSV are computed from RGB using hue, saturation, and lightness/value transforms; CMYK is derived from RGB by computing the cyan, magenta, yellow, and black ink percentages.
Alpha is rendered as an 8-digit hexadecimal in HEXA (A x 255 converted to hex) and as a two-decimal fraction in RGBA/HSLA/HSVA/CMYKA. When no alpha is supplied, it defaults to 100% opaque. All conversions follow standard color-science formulas, so the results are stable and reproducible.
RGB is an industry-standard color model based on the additive combination of three channels - Red (R), Green (G), and Blue (B). By varying these channels and layering them, it can reproduce nearly every color perceptible to the human eye, making it one of the most widely used color systems.
HSL (Hue, Saturation, Lightness) represents a point in the RGB color space in a cylindrical coordinate system.
HSV (Hue, Saturation, Value), also known as the Hexcone Model, is a color space created by A. R. Smith in 1978 based on the intuitive characteristics of color.
CMYK is a subtractive color model used for printed materials that rely on reflected light. We read a newspaper when light from the sun or a lamp falls on the page and reflects into our eyes. Because it needs an external light source, you cannot read a newspaper in a dark room.
Converting RGBA to hexadecimal: R, G, and B are numbers from 0 to 255, so each can be converted directly from decimal to hexadecimal. Alpha A is a percentage from 0% to 100%; first convert it to a 0-255 value (A x 255), then to hexadecimal. For example, RGB 46,139,87 becomes #2e8b57, and RGBA 46,139,87,0.6 becomes #2e8b5799.
#0FF equals #00FFFF).#RRGGBBFF and RGBA/HSLA alpha is 1.00.Enter a HEXA value:
Input: #2e8b5799
Output:
HEX: #2E8B57
HEXA: #2E8B5799
RGB: rgb(46,139,87)
RGBA: rgba(46,139,87,0.60)
HSL: hsl(146,50%,36%)
HSLA: hsla(146,50%,36%,0.60)
HSV: hsv(146,67%,55%)
HSVA: hsva(146,67%,55%,0.60)
CMYK: cmyk(67,0,37,45)
CMYKA: cmyka(67,0,37,45,0.60)
Enter an RGB value:
Input: rgb(255,0,0)
Output:
HEX: #FF0000
RGB: rgb(255,0,0)
HSL: hsl(0,100%,50%)
HSV: hsv(0,100%,100%)
CMYK: cmyk(0,100,100,0)
The table below lists the 136 named CSS colors, including the English code, description, hexadecimal value, and RGB value. Click a row to copy the color for quick reference.
| Color | English Code | Description | Hex | RGB |
|---|---|---|---|---|
LightPink |
LightPink | #FFB6C1 |
255,182,193 | |
Pink |
Pink | #FFC0CB |
255,192,203 | |
Crimson |
Crimson | #DC143C |
220,20,60 | |
LavenderBlush |
LavenderBlush | #FFF0F5 |
255,240,245 | |
PaleVioletRed |
PaleVioletRed | #DB7093 |
219,112,147 | |
HotPink |
HotPink | #FF69B4 |
255,105,180 | |
DeepPink |
DeepPink | #FF1493 |
255,20,147 | |
MediumVioletRed |
MediumVioletRed | #C71585 |
199,21,133 | |
Orchid |
Orchid | #DA70D6 |
218,112,214 | |
Thistle |
Thistle | #D8BFD8 |
216,191,216 | |
plum |
plum | #DDA0DD |
221,160,221 | |
Violet |
Violet | #EE82EE |
238,130,238 | |
Magenta |
Magenta | #FF00FF |
255,0,255 | |
Fuchsia |
Fuchsia | #FF00FF |
255,0,255 | |
DarkMagenta |
DarkMagenta | #8B008B |
139,0,139 | |
Purple |
Purple | #800080 |
128,0,128 | |
MediumOrchid |
MediumOrchid | #BA55D3 |
186,85,211 | |
DarkVoilet |
DarkVoilet | #9400D3 |
148,0,211 | |
DarkOrchid |
DarkOrchid | #9932CC |
153,50,204 | |
Indigo |
Indigo | #4B0082 |
75,0,130 | |
BlueViolet |
BlueViolet | #8A2BE2 |
138,43,226 | |
MediumPurple |
MediumPurple | #9370DB |
147,112,219 | |
MediumSlateBlue |
MediumSlateBlue | #7B68EE |
123,104,238 | |
SlateBlue |
SlateBlue | #6A5ACD |
106,90,205 | |
DarkSlateBlue |
DarkSlateBlue | #483D8B |
72,61,139 | |
Lavender |
Lavender | #E6E6FA |
230,230,250 | |
GhostWhite |
GhostWhite | #F8F8FF |
248,248,255 | |
Blue |
Blue | #0000FF |
0,0,255 | |
MediumBlue |
MediumBlue | #0000CD |
0,0,205 | |
MidnightBlue |
MidnightBlue | #191970 |
25,25,112 | |
DarkBlue |
DarkBlue | #00008B |
0,0,139 | |
Navy |
Navy | #000080 |
0,0,128 | |
RoyalBlue |
RoyalBlue | #4169E1 |
65,105,225 | |
CornflowerBlue |
CornflowerBlue | #6495ED |
100,149,237 | |
LightSteelBlue |
LightSteelBlue | #B0C4DE |
176,196,222 | |
LightSlateGray |
LightSlateGray | #778899 |
119,136,153 | |
SlateGray |
SlateGray | #708090 |
112,128,144 | |
DoderBlue |
DoderBlue | #1E90FF |
30,144,255 | |
AliceBlue |
AliceBlue | #F0F8FF |
240,248,255 | |
SteelBlue |
SteelBlue | #4682B4 |
70,130,180 | |
LightSkyBlue |
LightSkyBlue | #87CEFA |
135,206,250 | |
SkyBlue |
SkyBlue | #87CEEB |
135,206,235 | |
DeepSkyBlue |
DeepSkyBlue | #00BFFF |
0,191,255 | |
LightBLue |
LightBLue | #ADD8E6 |
173,216,230 | |
PowDerBlue |
PowDerBlue | #B0E0E6 |
176,224,230 | |
CadetBlue |
CadetBlue | #5F9EA0 |
95,158,160 | |
Azure |
Azure | #F0FFFF |
240,255,255 | |
LightCyan |
LightCyan | #E1FFFF |
225,255,255 | |
PaleTurquoise |
PaleTurquoise | #AFEEEE |
175,238,238 | |
Cyan |
Cyan | #00FFFF |
0,255,255 | |
Aqua |
Aqua | #D4F2E7 |
212,242,231 | |
DarkTurquoise |
DarkTurquoise | #00CED1 |
0,206,209 | |
DarkSlateGray |
DarkSlateGray | #2F4F4F |
47,79,79 | |
DarkCyan |
DarkCyan | #008B8B |
0,139,139 | |
Teal |
Teal | #008080 |
0,128,128 | |
MediumTurquoise |
MediumTurquoise | #48D1CC |
72,209,204 | |
LightSeaGreen |
LightSeaGreen | #20B2AA |
32,178,170 | |
Turquoise |
Turquoise | #40E0D0 |
64,224,208 | |
Auqamarin |
Auqamarin | #7FFFAA |
127,255,170 | |
MediumAquamarine |
MediumAquamarine | #00FA9A |
0,250,154 | |
MediumSpringGreen |
MediumSpringGreen | #00FF7F |
0,255,127 | |
MintCream |
MintCream | #F5FFFA |
245,255,250 | |
SpringGreen |
SpringGreen | #3CB371 |
60,179,113 | |
SeaGreen |
SeaGreen | #2E8B57 |
46,139,87 | |
Honeydew |
Honeydew | #F0FFF0 |
240,255,240 | |
LightGreen |
LightGreen | #90EE90 |
144,238,144 | |
PaleGreen |
PaleGreen | #98FB98 |
152,251,152 | |
DarkSeaGreen |
DarkSeaGreen | #8FBC8F |
143,188,143 | |
LimeGreen |
LimeGreen | #32CD32 |
50,205,50 | |
Lime |
Lime | #00FF00 |
0,255,0 | |
ForestGreen |
ForestGreen | #228B22 |
34,139,34 | |
Green |
Green | #008000 |
0,128,0 | |
DarkGreen |
DarkGreen | #006400 |
0,100,0 | |
Chartreuse |
Chartreuse | #7FFF00 |
127,255,0 | |
LawnGreen |
LawnGreen | #7CFC00 |
124,252,0 | |
GreenYellow |
GreenYellow | #ADFF2F |
173,255,47 | |
OliveDrab |
OliveDrab | #556B2F |
85,107,47 | |
Beige |
Beige | #F5F5DC |
245,245,220 | |
LightGoldenrodYellow |
LightGoldenrodYellow | #FAFAD2 |
250,250,210 | |
Ivory |
Ivory | #FFFFF0 |
255,255,240 | |
LightYellow |
LightYellow | #FFFFE0 |
255,255,224 | |
Yellow |
Yellow | #FFFF00 |
255,255,0 | |
Olive |
Olive | #808000 |
128,128,0 | |
DarkKhaki |
DarkKhaki | #BDB76B |
189,183,107 | |
LemonChiffon |
LemonChiffon | #FFFACD |
255,250,205 | |
PaleGodenrod |
PaleGodenrod | #EEE8AA |
238,232,170 | |
Khaki |
Khaki | #F0E68C |
240,230,140 | |
Gold |
Gold | #FFD700 |
255,215,0 | |
Cornislk |
Cornislk | #FFF8DC |
255,248,220 | |
GoldEnrod |
GoldEnrod | #DAA520 |
218,165,32 | |
FloralWhite |
FloralWhite | #FFFAF0 |
255,250,240 | |
OldLace |
OldLace | #FDF5E6 |
253,245,230 | |
Wheat |
Wheat | #F5DEB3 |
245,222,179 | |
Moccasin |
Moccasin | #FFE4B5 |
255,228,181 | |
Orange |
Orange | #FFA500 |
255,165,0 | |
PapayaWhip |
PapayaWhip | #FFEFD5 |
255,239,213 | |
BlanchedAlmond |
BlanchedAlmond | #FFEBCD |
255,235,205 | |
NavajoWhite |
NavajoWhite | #FFDEAD |
255,222,173 | |
AntiqueWhite |
AntiqueWhite | #FAEBD7 |
250,235,215 | |
Tan |
Tan | #D2B48C |
210,180,140 | |
BrulyWood |
BrulyWood | #DEB887 |
222,184,135 | |
Bisque |
Bisque | #FFE4C4 |
255,228,196 | |
DarkOrange |
DarkOrange | #FF8C00 |
255,140,0 | |
Linen |
Linen | #FAF0E6 |
250,240,230 | |
Peru |
Peru | #CD853F |
205,133,63 | |
PeachPuff |
PeachPuff | #FFDAB9 |
255,218,185 | |
SandyBrown |
SandyBrown | #F4A460 |
244,164,96 | |
Chocolate |
Chocolate | #D2691E |
210,105,30 | |
SaddleBrown |
SaddleBrown | #8B4513 |
139,69,19 | |
SeaShell |
SeaShell | #FFF5EE |
255,245,238 | |
Sienna |
Sienna | #A0522D |
160,82,45 | |
LightSalmon |
LightSalmon | #FFA07A |
255,160,122 | |
Coral |
Coral | #FF7F50 |
255,127,80 | |
OrangeRed |
OrangeRed | #FF4500 |
255,69,0 | |
DarkSalmon |
DarkSalmon | #E9967A |
233,150,122 | |
Tomato |
Tomato | #FF6347 |
255,99,71 | |
MistyRose |
MistyRose | #FFE4E1 |
255,228,225 | |
Salmon |
Salmon | #FA8072 |
250,128,114 | |
Snow |
Snow | #FFFAFA |
255,250,250 | |
LightCoral |
LightCoral | #F08080 |
240,128,128 | |
RosyBrown |
RosyBrown | #BC8F8F |
188,143,143 | |
IndianRed |
IndianRed | #CD5C5C |
205,92,92 | |
Red |
Red | #FF0000 |
255,0,0 | |
Brown |
Brown | #A52A2A |
165,42,42 | |
FireBrick |
FireBrick | #B22222 |
178,34,34 | |
DarkRed |
DarkRed | #8B0000 |
139,0,0 | |
Maroon |
Maroon | #800000 |
128,0,0 | |
White |
White | #FFFFFF |
255,255,255 | |
WhiteSmoke |
WhiteSmoke | #F5F5F5 |
245,245,245 | |
Gainsboro |
Gainsboro | #DCDCDC |
220,220,220 | |
LightGrey |
LightGrey | #D3D3D3 |
211,211,211 | |
Silver |
Silver | #C0C0C0 |
192,192,192 | |
DarkGray |
DarkGray | #A9A9A9 |
169,169,169 | |
Gray |
Gray | #808080 |
128,128,128 | |
DimGray |
DimGray | #696969 |
105,105,105 | |
Black |
Black | #000000 |
0,0,0 |
This tool pairs naturally with Base Converter, which also handles value conversions - base conversion works with numbers across different bases, while color conversion works with colors across different models. In design and development, it is often used alongside ASCII Lookup, Base64 Encode, MIME Type Lookup, Color Palette, Image Color Picker, Image to ICO Icon, and Image Compressor.