// free tools

🎨 Color Picker

Convert HEX · RGB · HSL · OKLCH — WCAG contrast, tint and shade palettes

How to convert HEX colors to RGB

A HEX color is simply the hexadecimal notation of the three RGB channels. #3b82f6 → R=59 (3b in hex), G=130 (82), B=246 (f6). In CSS you can use HEX, rgb(), hsl() or the modern oklch() interchangeably.

OKLCH is the modern color format recommended for design: its components (Lightness, Chroma, Hue) match human color perception, making it easy to build consistent tonal scales. It's supported by all modern browsers and by Tailwind v4.

What is WCAG contrast?

WCAG contrast (Web Content Accessibility Guidelines) measures the luminance ratio between text and background. AA requires at least 4.5:1 for normal text, 3:1 for large text. AAA requires 7:1. This tool calculates the contrast between your color and white/black.

When to use a color picker with format conversion

This tool converts colors between HEX, RGB, HSL and OKLCH, generates palettes, and calculates WCAG contrast — useful during web development or design to choose and verify accessible colors.

When to use it

When NOT to use it

Alternatives

Common mistakes

Frequently asked questions about the color picker

OKLCH is a perceptually uniform color space: unlike HSL, equal changes in the values correspond to equal changes perceived by the eye, which helps generate visually consistent palettes and gradients.

The tool calculates the contrast ratio between two colors using the WCAG 2.1 formula, showing whether the result meets the AA or AAA levels for normal and large text.

No, all conversions and calculations happen locally in your browser, without sending any data to a server.