Color Converter
Convert HEX, RGB, HSL color codes in real-time and generate Tailwind CSS scales.
Color Coordinates
View CIE 1931, CIE 1976 chromaticity and various color space values. Input values directly to convert.
Color Picker
Select a color by clicking on the gradient area or adjusting the hue slider.
Palette Generator
Generate harmonious color combinations based on the selected color.
Conversion Formulas
Color space conversion formulas used in this tool. All calculations are based on D65 Standard Illuminant and CIE 1931 2° Standard Observer.
Understanding Color Models
Learn about different color models, their origins, and when to use each one.
RGB is an additive color model where red, green, and blue light are combined to create colors. It’s the native format for digital displays.
Each channel ranges from 0-255, creating over 16 million possible colors. RGB is device-dependent, meaning the same values can appear differently on different screens.
HSL (Hue, Saturation, Lightness) and HSV (Hue, Saturation, Value) represent colors in a way that’s more intuitive for humans to understand and manipulate.
Hue is the color angle (0-360°), saturation is color intensity, and lightness/value controls brightness. These models are ideal for color selection interfaces and CSS.
CIE XYZ, established in 1931, is the foundation of colorimetry. It’s based on human vision and serves as the master reference for all color space conversions.
Y represents luminance, while X and Z encode chromaticity. XYZ is device-independent, making it essential for accurate color management across different devices.
CIELAB (L*a*b*) was designed to be perceptually uniform, meaning equal numerical differences correspond to equal perceived color differences.
L* is lightness (0-100), a* goes from green to red, and b* from blue to yellow. CIELAB is used for color difference calculations (Delta E) and professional color matching.
CMYK uses cyan, magenta, yellow, and black inks in a subtractive color model. Unlike RGB which adds light, CMYK subtracts light from white paper.
The K (Key/Black) channel improves text quality and reduces ink usage. CMYK gamut is smaller than RGB, so some screen colors cannot be printed accurately.
The CIE 1976 UCS (Uniform Chromaticity Scale) diagram addresses the non-uniformity of the 1931 xy diagram by providing more perceptually even spacing.
It’s preferred for calculating color differences and gamut coverage, as equal distances better represent equal perceived color differences.