Converter Client-side only

Color Picker & Contrast Checker

A precise color utility for developers. Pick colors, convert instantly between HEX, RGB, HSL, and OKLCH, and verify WCAG contrast compliance offline.

[ ADVERTISEMENT SPACE ]
Click to open native picker
~springgreen

WCAG Contrast Checker

RATIO 12.50:1
PASS AA PASS AAA PASS AA (Large)
WCAG 2.0 level AA requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text. AAA requires 7:1.

Tints & Shades

Click swatch to set main color
[ ADVERTISEMENT SPACE ]

What is a Color Picker & Converter?

A color picker online is a fundamental design tool that allows developers and UI/UX designers to select visual colors and instantly translate them into the mathematical color models used by web browsers and graphics software (like CSS, SVG, and Canvas). Color models define how colors are represented on a screen or in print.

Our tool goes beyond basic selection. By typing into any format field (HEX, RGB, HSL) or using the visual picker, you trigger real-time, mathematically accurate conversions across all modern web color spaces, including the perceptually uniform OKLCH space, which is rapidly becoming the new standard in modern CSS.

How to use the Color Tool

  1. Pick a color: Click the large square color swatch to open your operating system's native visual color picker.
  2. Input manually: If you already have a value, type or paste it directly into the HEX, RGB, or HSL text boxes. The tool will automatically parse the string and update all other formats instantly.
  3. Check Contrast: Web accessibility is critical. Enter your website's background color hex code into the Contrast Checker section to instantly see if your selected text color passes WCAG 2.0 AA or AAA guidelines.
  4. Explore Palettes: At the bottom, the tool automatically generates a 10-step monochromatic palette of tints (mixed with white) and shades (mixed with black) based on your active color. Click any step to make it the active color.

Features of this Tool

  • ✓ 100% client-side — your operations run instantly in the browser with zero server latency.
  • OKLCH Support: Convert legacy HEX and RGB colors into the modern, perceptual OKLCH color space for better gradients and theming.
  • Bidirectional Sync: Edit any field, and all other fields update simultaneously.
  • Accessibility First: Native math to calculate WCAG relative luminance and contrast ratios locally.
  • Named Colors: Automatically identifies the closest standard CSS named color (e.g., 'cornflowerblue') to your selection using Euclidean distance mapping.
  • ✓ Fast copy buttons for every format.

Frequently Asked Questions

Why use OKLCH over HSL?

HSL (Hue, Saturation, Lightness) is easy for humans to understand, but it is not perceptually uniform. In HSL, a lightness of 50% yellow looks much brighter to the human eye than a lightness of 50% blue. OKLCH (Lightness, Chroma, Hue) solves this. If two OKLCH colors have the same Lightness value, they will appear equally bright to the human eye, making it vastly superior for generating accessible color palettes and smooth CSS gradients.

What are WCAG AA and AAA standards?

The Web Content Accessibility Guidelines (WCAG) ensure digital content is readable for people with visual impairments. For text to be readable, it needs sufficient contrast against its background. AA is the minimum standard required by most corporate and government policies (4.5:1 ratio). AAA is the gold standard for maximum readability (7:1 ratio).

Why is the CMYK field read-only?

CMYK (Cyan, Magenta, Yellow, Key/Black) is a subtractive color model used exclusively for physical printing with ink. Web browsers use additive RGB (light). While we provide a mathematical approximation of the CMYK values for reference, true CMYK conversion requires complex ICC color profiles specific to the printer hardware, which cannot be accurately simulated in a web browser sandbox.

[ ADVERTISEMENT SPACE ]