Color Spaces & Palette File Formats
Compare 12 web color spaces, wide-gamut models, print spaces, and binary swatch interchange formats by gamut scope, perceptual uniformity, alpha support, and converters.
Format Comparison Matrix
| Formats | Gamut scope | Perceptual uniformity | Alpha channel support | Extension / Token |
|---|---|---|---|---|
| HEX | sRGB (Standard Web) | No | Yes | .css / .txt |
| RGB | sRGB (Standard Web) | No | Yes | .css / .json |
| HSL | sRGB (Standard Web) | No | Yes | .css |
| HWB | sRGB (Standard Web) | No | Yes | .css |
| OKLCH | Wide Gamut (P3 / Unbounded) | Yes | Yes | .css / .json |
| OKLab | Wide Gamut (P3 / Unbounded) | Yes | Yes | .css |
| Display P3 | Wide Gamut (P3 / Unbounded) | No | Yes | .css / .icc |
| CIELab | Wide Gamut (P3 / Unbounded) | Yes | Yes | .css / .csv |
| CMYK | Device-Dependent Print | No | No | .pdf / .ase / .css |
| ASE | Palette Interchange | No | No | .ase |
| ACO | Palette Interchange | No | No | .aco |
| DTCG JSON | Wide Gamut (P3 / Unbounded) | Yes | Yes | .tokens.json |
Classic Web CSS Formats
Hexadecimal sRGB Notation
Eight-bit base-16 red, green, blue (and optional alpha) notation (#RRGGBB or #RRGGBBAA) anchored to IEC 61966-2-1 sRGB.
Red Green Blue Additive CSS Color
Additive channel model mixing Red, Green, and Blue primaries from 0 to 255 or 0% to 100%, with modern space-separated CSS Color 4 syntax.
Hue Saturation Lightness Cylindrical Model
Cylindrical rearrangement of sRGB into Hue (0–360°), Saturation (0–100%), and Lightness (0–100%) — intuitive to read, but uneven in true luminance.
Hue Whiteness Blackness CSS Color 4
CSS Color 4 cylindrical notation mixing a pure hue angle (0–360°) with percentages of Whiteness (W) and Blackness (B) — zero saturation math needed.
Modern Perceptual & Wide-Gamut Spaces
Oklab Lightness Chroma Hue Cylindrical
Bjorn Ottosson's perceptual polar space standardized in W3C CSS Color 4 and Tailwind v4 — equal Lightness guarantees steady visual contrast across all hues.
Oklab Perceptual Cartesian Color Space
Cartesian sister space to OKLCH using perceptual Lightness (L) and opponent axes a (green-red) and b (blue-yellow) for straight-line blending.
Wide-Gamut Display P3 RGB Space
Wide-gamut RGB color space spanning roughly 25% more color volume than sRGB (especially vivid reds, greens, and cyans), written as color(display-p3 r g b).
Print & Colorimetry Standards
CIE 1976 L*a*b* Colorimetry Space
Device-independent colorimetry standard (CIE 15:2018) with Lightness L* (0–100) and opponent axes a* and b*, used across print tolerances and ICC profiles.
Cyan Magenta Yellow Key (Black) Print Model
Subtractive four-ink process model measuring Cyan, Magenta, Yellow, and Black (Key) percentages (0–100%) on physical paper stock.
Binary Palette Files & Design Tokens
Adobe Swatch Exchange Binary (.ase)
Big-endian binary swatch format (ASEF v1.0) preserving group folders, UTF-16BE swatch names, RGB/CMYK/LAB/Gray tags, and Spot vs Process markers.
Adobe Photoshop Color Swatch (.aco)
Adobe Photoshop big-endian binary swatch format featuring Version 1 (uint16 4-channel records) and Version 2 (named UTF-16BE swatch strings).
W3C Design Tokens Format (2025.10)
Official W3C 2025.10 JSON schema ($type: 'color', structured $value colorSpace/components/hex objects) uniting Figma Variables and CSS codebases.