colour-converter

/// COLOUR

Colour Converter

Convert a colour between every notation CSS understands, including OKLCH, with copyable output in each format.

Runs locally. No data sent anywhere.

Active Color#3B82F6
Presets:
STANDARDS-COMPLIANT sRGB & OKLCHALPHA: 1
sRGB: 59, 130, 246
HSL: 217°, 91%, 60%
OKLCH L: 62.3% C: 0.188

Synchronized Editable Notations

Edit any field to convert
HEX
Standard 6/8-digit hexadecimal
RGB / RGBA
Red, Green, Blue (0-255) + Alpha
HSL / HSLA
Hue (0-360°), Saturation & Lightness (%)
OKLCH
CSS Color 4 Perceptually Uniform Gamut

Live Sample Text Legibility

Color as Background

White Sample Text3.68:1

The quick brown fox jumps over the lazy dog. 1234567890.

Black Sample Text5.71:1

The quick brown fox jumps over the lazy dog. 1234567890.

Foreground on Dark (slate-950)5.48:1

Primary Heading Text

Readable UI copy, code tokens, and highlight elements on dark interfaces.

Foreground on Light (slate-50)3.52:1

Primary Heading Text

Readable UI copy, code tokens, and highlight elements on light interfaces.

// Runs entirely in your browser. Nothing is uploaded, nothing is stored, and it keeps working with the network off.