Color Converter
Convert an opaque sRGB color between HEX, RGB and HSL; CMYK is an approximate formula.
Limits · RGB 0–255; % 0–100
Convert opaque gamma-encoded sRGB through one quantization to RGB8. HEX accepts exactly 3 or 6 digits, optionally #; alpha is unsupported. RGB requires whole numbers and clamps to 0–255 with notice. HSL hue wraps modulo 360; S/L and CMYK clamp to 0–100. Active drafts remain editable; blur normalizes valid values. Red #FF0000 gives RGB 255,0,0 and HSL 0,100,50. Summaries show at most two decimals; achromatic hue is undefined and displayed as 0. HSV and naive CMYK are numeric model notation, not CSS functions, ICC print matching or contrast certification.
Method
Convert opaque gamma-encoded sRGB through one quantization to RGB8. HEX accepts exactly 3 or 6 digits, optionally #; alpha is unsupported. RGB requires whole numbers and clamps to 0–255 with notice. HSL hue wraps modulo 360; S/L and CMYK clamp to 0–100. Active drafts remain editable; blur normalizes valid values. Red #FF0000 gives RGB 255,0,0 and HSL 0,100,50. Summaries show at most two decimals; achromatic hue is undefined and displayed as 0. HSV and naive CMYK are numeric model notation, not CSS functions, ICC print matching or contrast certification.
Copied
Copy failed. Select the result and copy it manually.
About Color Converter
Convert an opaque sRGB color between HEX, RGB and HSL; CMYK is an approximate formula.
#FF0000 → RGB 255,0,0; HSL 0,100,50
Model · sRGB8
Use Cases
How to use
Pick a shade with the swatch under Pick a color, or type a value such as #3B82F6 into the hex field beside it.
Edit the R, G and B boxes on the RGB card, each accepting 0 to 255; every other format recalculates instantly.
Change H from 0 to 360 plus S% and L% on the HSL card when you want to adjust hue, saturation or lightness directly.
Type C, M, Y and K percentages into the CMYK card if you are matching a value from a print spec.
Read the All Color Values panel at the bottom for HEX, RGB, HSL, HSV/HSB and CMYK side by side.
Copy · HEX / RGB / HSL / CMYK · Convert opaque gamma-encoded sRGB through one quantization to RGB8. HEX accepts exactly 3 or 6 digits, optionally #; alpha is unsupported. RGB requires whole numbers and clamps to 0–255 with notice. HSL hue wraps modulo 360; S/L and CMYK clamp to 0–100. Active drafts remain editable; blur normalizes valid values. Red #FF0000 gives RGB 255,0,0 and HSL 0,100,50. Summaries show at most two decimals; achromatic hue is undefined and displayed as 0. HSV and naive CMYK are numeric model notation, not CSS functions, ICC print matching or contrast certification.
Pro Tips
- HSV and naive CMYK are numeric model notation, not CSS functions, ICC print matching or contrast certification.
Frequently Asked Questions
Summaries show at most two decimals; achromatic hue is undefined and displayed as 0. HSV and naive CMYK are numeric model notation, not CSS functions, ICC print matching or contrast certification.
Convert opaque gamma-encoded sRGB through one quantization to RGB8. HEX accepts exactly 3 or 6 digits, optionally #; alpha is unsupported. RGB requires whole numbers and clamps to 0–255 with notice. HSL hue wraps modulo 360; S/L and CMYK clamp to 0–100. Active drafts remain editable; blur normalizes valid values. Red #FF0000 gives RGB 255,0,0 and HSL 0,100,50.