CSS & Modern Color Palette Studio

Zero Egress

Zero-egress client-side color studio. Bi-directional HEX, RGB, HSL, OKLCH, and HWB conversions, WCAG 2.1 & APCA contrast checker with intelligent auto-fixer, 8-profile color blindness simulator, interactive color wheel harmonies, and Tailwind 11-step design token generator.

Sample Palettes:

#10B981

Luminance: 0.3639Neutral Paletteoklch(0.6959 0.1491 162.48)
100%

Channel Sliders

16
185
129

HSL Controls

160°
84%
39%

Standard & Modern CSS SyntaxClick any value to copy

HEX (6-digit)
#10B981
HEX (8-digit with alpha)
#10B981
RGB (CSS Standard)
rgb(16, 185, 129)
RGBA (Alpha Included)
rgba(16, 185, 129)
Modern Space-Separated RGB
rgb(16 185 129)
HSL (Hue, Sat, Light)
hsl(160, 84%, 39%)
Modern Space-Separated HSL
hsl(160deg 84% 39%)
HWB (Hue, Whiteness, Blackness)
hwb(160 6% 27%)
OKLCH (CSS Color 4 Standard)
oklch(0.6959 0.1491 162.48)
OKLAB (Perceptual Lab)
oklab(0.696 -0.142 0.045)
CIE L*a*b* (Photometric)
lab(66.82% -52.21 17.68)
CIE LCH (Cylindrical)
lch(66.82% 55.12 161.29)
CMYK (Print Reference)
cmyk(91%, 0%, 30%, 27%)
Tailwind Arbitrary Class
bg-[#10B981]
CSS Custom Property
--color-brand: #10B981;
Architectural Privacy Guarantee

Modern CSS Color Studio: OKLCH, P3 Gamut, WCAG Contrast & Palettes

Explore, convert, and harmonize modern CSS color spaces including OKLCH, OKLAB, Display P3, LCH, LAB, HSL, RGB, and Hex. Test WCAG 2.2 / APCA accessibility contrast ratios and generate perceptually uniform color palettes.

In-Browser Technology:Culori Color Science LibraryOKLCH Perceptually Uniform SpaceWCAG 2.2 / APCA Contrast AlgDisplay P3 Gamut Mapping

How Client-Side Processing Works

Every step executes within your browser runtime without network calls or cloud storage.

  • 1Color values are parsed into perceptual CIE LAB and OKLCH color models.
  • 2Gamut mapping algorithms detect whether vibrant P3 colors fall outside the standard sRGB gamut and calculate nearest clips.
  • 3Relative luminance formulas calculate precise contrast ratios against light and dark backgrounds for WCAG AA/AAA compliance.
  • 4Palette generators produce harmonious monochromatic, complementary, and triadic shades with perceptually uniform lightness steps.

Common Workflows & Use Cases

Modern CSS OKLCH Design Systems

Build future-proof design tokens and theme palettes using the perceptually uniform OKLCH color space supported across modern browsers.

WCAG Accessibility Auditing

Verify that text, buttons, and UI elements meet WCAG 2.2 Level AA (4.5:1) and Level AAA (7:1) contrast requirements.

Display P3 Wide-Gamut Exploration

Unlock vibrant, eye-popping shades on OLED and Apple Retina displays while ensuring safe fallbacks for standard sRGB monitors.

Color Palette Generation

Generate consistent lightness shades and accessible UI color ramps for frontend component libraries like Tailwind CSS.

Questions & Answers

Frequently Asked Questions

Why should I use OKLCH instead of traditional HSL or Hex?

In HSL, changing hue or saturation unintentionally changes perceived brightness (yellow looks much brighter than blue at the same lightness). OKLCH is perceptually uniform: a lightness value of 0.7 feels equally bright across every hue, making accessible palettes easy to build.

What is Display P3 wide gamut?

Display P3 can show approximately 50% more color shades than standard sRGB, especially in vivid greens, reds, and oranges. Modern smartphones, laptops, and tablets support Display P3 natively.

Does this tool calculate WCAG 2.2 contrast compliance?

Yes. It calculates exact contrast ratios and provides clear pass/fail indicators for WCAG 2.2 AA and AAA levels for normal text, large text, and graphical UI components.

Related Privacy-First Tools

Explore all tools