409 runs

Color Code Converter & Contrast Checker

Convert across HEX, RGB, HSL, CMYK and check WCAG 2.1 accessibility contrast ratios.

Instructions:
Use the interactive controls above to process data instantly. Load sample data or paste custom inputs, configure options, and copy or export results with zero latency.
Design Presets:

Color Preview & Alpha

Click swatch to invoke system picker

#2563EB
Alpha Opacity: 1.00 (100%)
Perceived Lightness
53%
Temperature
Cool Tone

Color Models & Formats

Edit any format to synchronously update all representations

HEX Color
RGB
RGBA
HSL
HSLA
HSV / HSB
CMYK (Print Process)

WCAG 2.1 Contrast & Accessibility Verification

Calculates relative luminance ratios according to W3C WCAG 2.1 specifications for text and UI elements.

Against White Background (#FFF)
5.17:1
The quick brown fox jumps over the lazy dog.
AA Normal (≥4.5:1) AA Large (≥3:1) AAA Enhanced (≥7:1)
Against Black Background (#000)
4.06:1
The quick brown fox jumps over the lazy dog.
AA Normal (≥4.5:1) AA Large (≥3:1) AAA Enhanced (≥7:1)

Harmonic Color Schemes & Tonal Variations

Mathematical color harmonies generated dynamically from your active base color (click any swatch to load).

Perceptual Luminance Formula

Uses the CIE 1931 relative luminance equation L = 0.2126R + 0.7152G + 0.0722B with sRGB gamma expansion to calculate true optical brightness.

CMYK Subtractive Color Matching

Accurately translates additive RGB display light to subtractive Cyan, Magenta, Yellow, and Key (Black) ink pigment percentages for print production.

Modern CSS Variables Ready

Generates production-ready design tokens including split RGB channels for seamless opacity compounding with rgb(var(--color) / 0.5) in Tailwind and CSS.