Color Code Converter

#FF0000
HEX
RGB / RGBA
HSL / HSLA
HSV / HSVA
CMYK
LAB

Color Format Guide

HEX

Hexadecimal color code starting with #. 6-digit represents RGB (two hex digits per channel), 8-digit adds alpha transparency. Most commonly used in web development.

#FF0000 / #FF000080

RGB / RGBA

Additive color model using red, green, and blue light. Each channel ranges 0-255. RGBA adds an alpha channel (0-255) for transparency. Standard format for screen display.

rgb(255, 0, 0)

HSL / HSLA

Hue-Saturation-Lightness color model. H is position on the color wheel (0-360°), S is saturation (0-100%), L is lightness (0-100%). More intuitive than RGB for humans.

hsl(0, 100%, 50%)

HSV / HSVA

Hue-Saturation-Value color model (also known as HSB). H is hue (0-360°), S is saturation (0-100%), V is brightness value (0-100%). Commonly used in image editing and design software color pickers.

hsv(0, 100%, 100%)

CMYK

Cyan-Magenta-Yellow-Key (black) subtractive color model, the standard for four-color printing. Each channel 0-100%. Has a different gamut than RGB — some RGB colors cannot be precisely converted.

cmyk(0%, 100%, 100%, 0%)

CIE LAB

Device-independent color space defined by the International Commission on Illumination. L is lightness (0-100), a is green-to-red (-128~127), b is blue-to-yellow (-128~127). Perceptually uniform — color differences are proportional to numerical differences.

lab(53, 80, 67)

About Color Code Converter

Free Online Color Code Converter

Color Code Converter supports bidirectional conversion between HEX, RGB, HSL, HSV, CMYK and CIE LAB color formats. All calculations run locally in your browser — no data upload, your privacy is protected. Alpha channel is fully supported with real-time color preview.


Features

  • Supports HEX (6-digit/8-digit), RGB/RGBA, HSL/HSLA, HSV/HSVA, CMYK, CIE LAB
  • Real-time bidirectional conversion from any format
  • Full alpha channel transparency support
  • Color preview swatch with native color picker
  • One-click copy for standard color string formats
  • 100% client-side, no server uploads

How to Use

  1. 1Enter a color value in any format input field
  2. 2All other formats update automatically in real time
  3. 3Click the color swatch to use the system color picker
  4. 4Click the copy button to copy the standard color string

FAQ

What's the difference between 6-digit and 8-digit HEX?
6-digit HEX (e.g. #FF0000) has no alpha channel. 8-digit HEX (e.g. #FF000080) adds two digits for alpha (00=transparent, FF=opaque).
What do the a and b values in LAB represent?
In CIE LAB, 'a' represents green-to-red (negative=green, positive=red), and 'b' represents blue-to-yellow (negative=blue, positive=yellow). L represents lightness (0=black, 100=white).
What's the difference between CMYK and RGB?
RGB is an additive color model for screens (red, green, blue light). CMYK is a subtractive color model for printing (cyan, magenta, yellow, black ink). Due to different gamuts, some RGB colors can't be perfectly represented in CMYK.
Is my data uploaded to any server?
No. All color conversion calculations happen entirely in your browser. No color data is uploaded to any server.
Is alpha transparency supported in all formats?
HEX (8-digit), RGBA, HSLA, and HSVA support alpha. CMYK and CIE LAB don't include alpha in their standards, so they will ignore the alpha value when present.
How accurate are the conversions?
All conversions use standard algorithms (sRGB color space, D65 illuminant, 2° standard observer). Minor rounding errors may occur when converting between different color spaces like RGB to CMYK or LAB, but these are typically negligible for practical use.

Related Tools

Code FormatterXML FormatterUnicode ConverterBase ConverterBase64 Encoder DecoderURL Encoder DecoderHTML Entity EscapeCookie to JSONJSON Unicode EscapeMD5 EncoderJWT Decode Verify EncodeJSON to CookieUUID Generator & ParserRegex TesterHTTP Status CodesPort NumbersUser-Agent ViewerMy Browser FingerprintJSON Unicode UnescapeCron Expression Generator & ParserIP Address Lookup