Skip to content
What are you looking for?

Color Format Converter

Drag the sliders or type a value for instant conversion

The same color can be written in many ways. Web designers use HEX (#3498DB), RGB (red, green, blue from 0 to 255), HSL (hue, saturation, lightness) and HSV; printers use CMYK (cyan, magenta, yellow, black percentages); and color scientists use CIELAB and XYZ.

Opacity (%)

HEX

HEX

CURRENT VALUE
— HEX

HEX with alpha

HEXA

CURRENT VALUE
— HEXA

RGB (0–255)

RGB

CURRENT VALUE
— RGB

RGBA

RGBA

CURRENT VALUE
— RGBA

RGB (%)

RGB %

CURRENT VALUE
— RGB %

HSL

HSL

CURRENT VALUE
— HSL

HSLA

HSLA

CURRENT VALUE
— HSLA

HSV / HSB

HSV

CURRENT VALUE
— HSV

CMYK (%)

CMYK

CURRENT VALUE
— CMYK

CSS color name

name

CURRENT VALUE
— name

About this tool

Color Format Converter

Drag the sliders or type a value for instant conversion

Everything runs in your browser, so nothing is ever uploaded. Convert HEX, HEX with alpha, RGB (0–255), RGBA, RGB (%), HSL, HSLA, HSV / HSB and more instantly with synced sliders.

  1. 01

    Choose which units to show

    Use the unit names at the top to show or hide each card. Drag a name or a card’s title to rearrange them; your order is remembered in this browser, and Restore puts the original order back. The names of CIELAB (L*, a*, b*), CIE XYZ (×100) and Color as a number are there too: tick any of them, or turn on “All Units” to show them all.

  2. 02

    Drag a slider or type a value

    Move the slider to step through the colors, or type a color into any card in its own format (for example #3498DB, rgb(52, 152, 219), hsl(204, 70%, 53%), cmyk(76, 31, 0, 14) or the name “tomato”) and the others follow. The alpha cards use the opacity in the box above. The slider moves through the 24-bit number from black to white, so neighboring positions are neighboring numbers rather than neighboring colors.

What is Color Format?

The same color can be written in many ways. Web designers use HEX (#3498DB), RGB (red, green, blue from 0 to 255), HSL (hue, saturation, lightness) and HSV; printers use CMYK (cyan, magenta, yellow, black percentages); and color scientists use CIELAB and XYZ. This converter changes a color between all of them. Drag the slider to step through the 16.7 million 24-bit colors, or type a color in any format into its card, such as #3498DB, rgb(52, 152, 219), hsl(204, 70%, 53%) or a name such as tomato. CMYK depends on the printer’s color profile, so the CMYK here is a simple screen conversion and is not for printing. CIELAB and XYZ use the sRGB standard with a D65 white point.

About Opacity (%)

How solid the color is. 100% is fully solid and 0% is clear. The HEX with alpha, RGBA and HSLA cards add it as an alpha value, which web pages use for see-through colors.

  • 50% = alpha 0.5 = #80 in HEX

About HEX

The color as a six-digit hexadecimal code, two digits for red, green and blue. This is the usual web color code.

  • #FF0000 is red
  • #FFFFFF is white

About HEX with alpha (HEXA)

The HEX code with two more digits for the opacity set above.

  • #3498DB80 is 50% opaque

About RGB (0–255)

Red, green and blue, each from 0 (none) to 255 (full), the way screens mix color.

  • rgb(255, 0, 0) is red

About RGBA

RGB with the opacity set above as a number from 0 to 1.

About RGB (%)

Red, green and blue as percentages of full.

  • 255 = 100%

About HSL

Hue (the color wheel position in degrees), saturation and lightness. Easy to adjust by eye.

  • Hue 0° is red, 120° green, 240° blue

About HSLA

HSL with the opacity set above.

About HSV / HSB

Hue, saturation and value (brightness). Used by many color pickers, where it is also called HSB.

About CMYK (%)

Cyan, magenta, yellow and black ink percentages by a simple conversion. Printing depends on the paper, ink and color profile, so use your printer’s profile for real work.

About CSS Color Name

The nearest of the 140 named web colors. A “≈” means no name matches exactly.

  • rgb(255, 99, 71) is “tomato”

About CIELAB (L*, a*, b*)

Lightness and two color axes in a space designed so that equal steps look equal. Computed from sRGB with a D65 white point.

About CIE XYZ (×100)

The CIE 1931 tristimulus values (scaled so white is about 95, 100, 109), computed from sRGB with a D65 white point.

About Color as a Number

The whole color counted as one number from 0 (black) to 16,777,215 (white): red × 65,536 + green × 256 + blue.

  • #FFFFFF = 16,777,215

What’s great about our Color Format Converter

Fast, accurate conversion of color format that you can see and drag

  • Free
  • Converts HEX, HEX with alpha, RGB (0–255), RGBA, RGB (%), HSL, HSLA, HSV / HSB and more instantly
  • Synced sliders and type-in boxes
  • No sign-up
  • No ads
  • Works offline once loaded
  • No daily limit

Loved it?

  • If you're on computer, bookmark this page to your browser.
  • If you're on mobile, add it to your home screen for one-tap access and offline use.
    • Android: Visit this page in Google Chrome > tap three-dot icon (⋮) at top > Install and create shortcut.
    • iPhone and iPad: Visit this page in Safari > tap menu icon in address bar > Share > Add to Home Screen.