Skip to content

Color converter

Convert a color between HEX, RGB, HSL, HSV, CMYK, XYZ and Lab, see its approximate Adobe RGB value, and generate a Tailwind-style shade scale and color palette.

#
RGB
HSL
°
%
%

Color conversion result

#3B82F6
RGB
-
HSL
-
HSV
-
CMYK
-
XYZ (D65)
-
CIE Lab
-
Adobe RGB (approx.)
-

Shade scale

A Tailwind-style 50 to 950 scale generated from your color. Select a shade to use it as the current color.

Palette generator

Palette type

How it works

Color space conversion transforms color values between models such as RGB, HSL, HSV, CMYK, XYZ and Lab. RGB, HSL and HSV describe the same sRGB color in different ways; CIE XYZ is a device-independent intermediate used to convert into other spaces such as Adobe RGB, and Lab separates lightness from color for more perceptually even comparisons.

  1. Enter a color

    Type a hex code or drag the RGB or HSL sliders.

  2. Read every format

    RGB, HSL, HSV, CMYK, XYZ, Lab and an approximate Adobe RGB value update together.

  3. Build a scale or palette

    Use the shade scale for UI tokens, or the palette generator for color schemes.

Converting through CIE XYZ

Each RGB color space defines its primaries and white point as CIE XYZ tristimulus values. Conversion applies a 3x3 matrix to transform source RGB into XYZ, then a second matrix to convert XYZ into the target RGB. sRGB and Adobe RGB both use the D65 white point, so no chromatic adaptation is needed between them; DCI-P3 theatrical uses a different white point, which does need adaptation.

Why colors can look different in Adobe RGB

Adobe RGB has a notably larger gamut than sRGB, particularly in cyan-green. The same RGB numbers represent a more saturated color in Adobe RGB, because its green primary sits further out on the CIE diagram. When an application ignores a file's embedded profile and assumes sRGB, colors that were only valid in Adobe RGB display as more muted than intended.

Out-of-gamut colors

A color is out of gamut in a target space when any channel falls below 0 or above 1 in normalized terms. Perceptual rendering intent compresses the whole gamut proportionally; relative colorimetric clips out-of-gamut values to the boundary while leaving in-gamut colors unchanged; absolute colorimetric also preserves white-point differences.

sRGB or Adobe RGB for editing photos

If your output is the web or consumer screens, nearly all sRGB, editing in sRGB avoids accidental oversaturation. If you print to a wide-gamut inkjet or offset press, Adobe RGB preserves more green and cyan detail. sRGB and Adobe RGB share the D65 white point (about x=0.3127, y=0.3290), so converting between them needs no white-point adaptation, only a gamut remap.

Frequently asked questions

Why do colors look different when I move a file between sRGB and Adobe RGB?

Adobe RGB has a much larger gamut, particularly in the cyan-green region. An RGB value of (0, 200, 0) in Adobe RGB represents a more saturated green than the same value in sRGB, because Adobe RGB's green primary sits further out in the CIE diagram. When a file is opened in an application that ignores the embedded profile and assumes sRGB, those out-of-sRGB colors display incorrectly, looking more muted than intended.

How does color space conversion work through CIE XYZ?

Each RGB color space defines its primaries and white point as CIE XYZ tristimulus values. Conversion applies a 3x3 matrix to transform source RGB into XYZ (absolute colorimetric), then a second matrix to convert XYZ into the target RGB. The two matrices come from the respective color space primaries. This two-step process is exact within floating-point precision; any visible difference between input and output means the color is out of the target gamut.

What happens when a color is out of gamut during conversion?

Out-of-gamut colors have at least one RGB channel below 0 or above 1 (in normalized terms) in the destination space. Rendering intent determines how they are mapped: perceptual intent compresses the whole gamut proportionally; relative colorimetric clips out-of-gamut values to the gamut boundary while preserving in-gamut colors; absolute colorimetric also preserves white-point differences. Photoshop and other ICC-compliant applications let you choose the rendering intent during conversion.

Should I edit photos in sRGB or Adobe RGB?

If your target output is the web or consumer screens, which are nearly all sRGB, editing in sRGB avoids accidental oversaturation. If you print to a high-quality inkjet or offset press with wide-gamut inks, Adobe RGB preserves more green and cyan detail that a CMYK-capable printer can reproduce. For future-proofing, or when the output medium is unknown, Adobe RGB or ProPhoto RGB as working spaces are common among professionals who convert to sRGB only for the final web export.

What is the correct white point for each major color space?

sRGB and Adobe RGB both use D65 (about 6,500K, CIE chromaticity x=0.3127, y=0.3290). DCI-P3 theatrical uses a D60-equivalent white point (about 6,300K, x=0.3140, y=0.3510) for film projection. Display P3, Apple's consumer variant, uses D65, making it more compatible with sRGB workflows. Rec. 2020 also uses D65. Mismatching white points during conversion without adaptation causes a color cast; always apply chromatic adaptation (a Bradford or Von Kries matrix) when crossing white-point boundaries.