Every CSS & Perceptual Color Format Compared in One Matrix
Navigate 148 directional converters spanning encoded sRGB (HEX, HEXA), Cartesian channels (RGB, RGBA), cylindrical pickers (HSL, HSLA, HSV, HSVA), CIE colorimetry (LAB, LCH, XYZ), and modern Oklab/OKLCH.
Example conversion (#f58223): rgb(245, 130, 35)
Choosing the Right Color Space for Your Workflow
Modern web and product engineering spans multiple color spaces depending on whether you are authoring CSS tokens, manipulating canvas pixels, or proofing print brand guidelines.
- HEX & HEXA: Compact 6- and 8-digit tokens ideal for static palettes and clipboard sharing.
- RGB, RGBA, HSL, HSLA, HSV, HSVA: Channel-explicit sRGB models for framebuffers, shaders, and classic UI color pickers.
- OKLCH & OKLAB: Perceptually uniform CSS Color 4 spaces eliminating muddy gradients and uneven perceived brightness.
- CIE XYZ, LAB & LCH: Device-independent colorimetric spaces built for ICC proofing and Delta-E measurements.
Frequently Asked Questions
Why convert between 13 different color formats?
Designers work in HSV/OKLCH, browsers accept HEXA/RGBA/OKLCH, graphics shaders compute in linear RGB/XYZ, and print specs rely on CIE LAB—requiring accurate cross-space translation.
Which format is best for CSS design systems today?
OKLCH is widely recommended for modern CSS design tokens because equal lightness steps produce consistent visual weight and contrast across all hues.