Online Color Converter: HEX ⇄ RGB ⇄ CMYK ⇄ HSL ⇄ HSV

Free online color converter: convert HEX, RGB and HSL to the format you need. Useful for designers and developers.

Color formats

Hue: 83°
Opacity: 100%
#B8ED63

Preview

Black text · 15.33:1
Bold text
White text · 1.37:1
Bold text

The WCAG contrast ratio is shown next to the text: regular text needs at least 4.5:1.

HTML color table

148 named CSS colors. Click a name to open the color in the converter and get it in every format.

SwatchNameHEXRGB

Reds

#CD5C5Crgb(205, 92, 92)
#F08080rgb(240, 128, 128)
#FA8072rgb(250, 128, 114)
#E9967Argb(233, 150, 122)
#FFA07Argb(255, 160, 122)
#DC143Crgb(220, 20, 60)
#FF0000rgb(255, 0, 0)
#B22222rgb(178, 34, 34)
#8B0000rgb(139, 0, 0)

Pinks

#FFC0CBrgb(255, 192, 203)
#FFB6C1rgb(255, 182, 193)
#FF69B4rgb(255, 105, 180)
#FF1493rgb(255, 20, 147)
#C71585rgb(199, 21, 133)
#DB7093rgb(219, 112, 147)

Oranges

#FF7F50rgb(255, 127, 80)
#FF6347rgb(255, 99, 71)
#FF4500rgb(255, 69, 0)
#FF8C00rgb(255, 140, 0)
#FFA500rgb(255, 165, 0)

Yellows

#FFD700rgb(255, 215, 0)
#FFFF00rgb(255, 255, 0)
#FFFFE0rgb(255, 255, 224)
#FFFACDrgb(255, 250, 205)
#FAFAD2rgb(250, 250, 210)
#FFEFD5rgb(255, 239, 213)
#FFE4B5rgb(255, 228, 181)
#FFDAB9rgb(255, 218, 185)
#EEE8AArgb(238, 232, 170)
#F0E68Crgb(240, 230, 140)
#BDB76Brgb(189, 183, 107)

Purples

#E6E6FArgb(230, 230, 250)
#D8BFD8rgb(216, 191, 216)
#DDA0DDrgb(221, 160, 221)
#EE82EErgb(238, 130, 238)
#DA70D6rgb(218, 112, 214)
#FF00FFrgb(255, 0, 255)
#FF00FFrgb(255, 0, 255)
#BA55D3rgb(186, 85, 211)
#9370DBrgb(147, 112, 219)
#663399rgb(102, 51, 153)
#8A2BE2rgb(138, 43, 226)
#9400D3rgb(148, 0, 211)
#9932CCrgb(153, 50, 204)
#8B008Brgb(139, 0, 139)
#800080rgb(128, 0, 128)
#4B0082rgb(75, 0, 130)
#6A5ACDrgb(106, 90, 205)
#483D8Brgb(72, 61, 139)
#7B68EErgb(123, 104, 238)

Greens

#ADFF2Frgb(173, 255, 47)
#7FFF00rgb(127, 255, 0)
#7CFC00rgb(124, 252, 0)
#00FF00rgb(0, 255, 0)
#32CD32rgb(50, 205, 50)
#98FB98rgb(152, 251, 152)
#90EE90rgb(144, 238, 144)
#00FA9Argb(0, 250, 154)
#00FF7Frgb(0, 255, 127)
#3CB371rgb(60, 179, 113)
#2E8B57rgb(46, 139, 87)
#228B22rgb(34, 139, 34)
#008000rgb(0, 128, 0)
#006400rgb(0, 100, 0)
#9ACD32rgb(154, 205, 50)
#6B8E23rgb(107, 142, 35)
#808000rgb(128, 128, 0)
#556B2Frgb(85, 107, 47)
#66CDAArgb(102, 205, 170)
#8FBC8Frgb(143, 188, 143)
#20B2AArgb(32, 178, 170)
#008B8Brgb(0, 139, 139)
#008080rgb(0, 128, 128)

Blues and cyans

#00FFFFrgb(0, 255, 255)
#00FFFFrgb(0, 255, 255)
#E0FFFFrgb(224, 255, 255)
#AFEEEErgb(175, 238, 238)
#7FFFD4rgb(127, 255, 212)
#40E0D0rgb(64, 224, 208)
#48D1CCrgb(72, 209, 204)
#00CED1rgb(0, 206, 209)
#5F9EA0rgb(95, 158, 160)
#4682B4rgb(70, 130, 180)
#B0C4DErgb(176, 196, 222)
#B0E0E6rgb(176, 224, 230)
#ADD8E6rgb(173, 216, 230)
#87CEEBrgb(135, 206, 235)
#87CEFArgb(135, 206, 250)
#00BFFFrgb(0, 191, 255)
#1E90FFrgb(30, 144, 255)
#6495EDrgb(100, 149, 237)
#4169E1rgb(65, 105, 225)
#0000FFrgb(0, 0, 255)
#0000CDrgb(0, 0, 205)
#00008Brgb(0, 0, 139)
#000080rgb(0, 0, 128)
#191970rgb(25, 25, 112)

Browns

#FFF8DCrgb(255, 248, 220)
#FFEBCDrgb(255, 235, 205)
#FFE4C4rgb(255, 228, 196)
#FFDEADrgb(255, 222, 173)
#F5DEB3rgb(245, 222, 179)
#DEB887rgb(222, 184, 135)
#D2B48Crgb(210, 180, 140)
#BC8F8Frgb(188, 143, 143)
#F4A460rgb(244, 164, 96)
#DAA520rgb(218, 165, 32)
#B8860Brgb(184, 134, 11)
#CD853Frgb(205, 133, 63)
#D2691Ergb(210, 105, 30)
#8B4513rgb(139, 69, 19)
#A0522Drgb(160, 82, 45)
#A52A2Argb(165, 42, 42)
#800000rgb(128, 0, 0)

Whites

#FFFFFFrgb(255, 255, 255)
#FFFAFArgb(255, 250, 250)
#F0FFF0rgb(240, 255, 240)
#F5FFFArgb(245, 255, 250)
#F0FFFFrgb(240, 255, 255)
#F0F8FFrgb(240, 248, 255)
#F8F8FFrgb(248, 248, 255)
#F5F5F5rgb(245, 245, 245)
#FFF5EErgb(255, 245, 238)
#F5F5DCrgb(245, 245, 220)
#FDF5E6rgb(253, 245, 230)
#FFFAF0rgb(255, 250, 240)
#FFFFF0rgb(255, 255, 240)
#FAEBD7rgb(250, 235, 215)
#FAF0E6rgb(250, 240, 230)
#FFF0F5rgb(255, 240, 245)
#FFE4E1rgb(255, 228, 225)

Grays and black

#DCDCDCrgb(220, 220, 220)
#D3D3D3rgb(211, 211, 211)
#D3D3D3rgb(211, 211, 211)
#C0C0C0rgb(192, 192, 192)
#A9A9A9rgb(169, 169, 169)
#A9A9A9rgb(169, 169, 169)
#808080rgb(128, 128, 128)
#808080rgb(128, 128, 128)
#696969rgb(105, 105, 105)
#696969rgb(105, 105, 105)
#778899rgb(119, 136, 153)
#778899rgb(119, 136, 153)
#708090rgb(112, 128, 144)
#708090rgb(112, 128, 144)
#2F4F4Frgb(47, 79, 79)
#2F4F4Frgb(47, 79, 79)
#000000rgb(0, 0, 0)

Features of the "Color Converter"

All popular formats

HEX, RGB, RGB and RGBA in percent, HSL, HSLA, HSV and CMYK on one screen. Enter a color in any format and the rest are recalculated instantly, and each value can be copied with one click.

Color picker and eyedropper

Pick a color on the saturation and brightness field, move the hue and opacity sliders, or grab a color straight from the screen with the eyedropper. The preview immediately shows how black and white text reads on the color.

HTML color table

All 148 named CSS colors grouped by hue, with HEX and RGB codes. Clicking a name opens the color in the converter, and the Random color button helps you find an idea for a palette.

Tool Description

alien

The color converter translates values between HEX, RGB, HSL, HSV and CMYK. On the left is a picker with a saturation and brightness field plus hue and opacity sliders; on the right are fields for every format. Typing into any field instantly updates the other values, the picker and the preview.

The tool understands different notations: short and long HEX, HEX with an alpha channel, rgb(), rgba(), hsl() and hsla() functions with or without commas, percentages, degrees and HTML color names. The preview block shows the color with black and white text and the WCAG contrast ratio, and below it is a table of all 148 named CSS colors.

The converter is handy for front-end developers moving colors from a mockup to CSS, designers who need CMYK for print or HSL to fine-tune shades, and anyone choosing colors for a website, presentation or brand. Everything is calculated in the browser, with no sign-up.

Frequently Asked Questions (FAQ)

HEX (including short #RGB and 8-digit #RRGGBBAA with transparency), RGB, RGB in percent, RGBA in percent, HSL, HSLA, HSV and CMYK. You can type a value into any field — the other formats and the picker update instantly.

Paste the code into the HEX field, for example #FF5733, and the RGB field shows rgb(255, 87, 51). Each pair of hex characters is one channel: FF = 255 (red), 57 = 87 (green), 33 = 51 (blue). The reverse works the same way: enter RGB and HEX is recalculated automatically.

HEX, RGB and HSL values can be used directly in the CSS properties color, background-color and border-color. For example, red can be written as #FF0000, rgb(255 0 0) or hsl(0 100% 50%).

The converter uses the standard mathematical formula without a color profile. That is enough for the web and prototypes, but exact CMYK values for print depend on paper and ink — check the color against your print shop's ICC profile before a print run.

Both describe a color through hue and saturation, but the third parameter differs. In HSL, 100% lightness is always white and 50% is the pure color. In HSV, 100% value is the brightest version of the hue, and white is reached at zero saturation. HSL is used in CSS, HSV in the color pickers of graphic editors.

The Eyedropper button lets you pick a color from anywhere on the screen — a website, an image or another window. It uses the browser EyeDropper API and is available in desktop Chrome, Edge and Opera. In other browsers, pick a color on the palette or type the code manually.

They are the 148 colors that have their own name in CSS: red, coral, steelblue and others. You can use them in styles instead of a code, for example color: tomato. In the table below the converter they are grouped by hue, and clicking a name opens the color in the converter.

Rate this tool
4.3(17 users rated)