Color Picker
Pick colors and convert between HEX, RGB, HSL, and HWB formats. View contrast ratios, shades, and tints.
Contrast Ratio
Tints
Shades
About Color Picker
Choosing the right colors is critical for user interface design, brand identity, and web accessibility. This color picker lets you visually select any color and instantly see its representation in HEX, RGB, HSL, and HWB formats, along with WCAG contrast ratios against black and white text. An accessible color picker that shows contrast ratios is essential for meeting WCAG 2.1 AA compliance, which requires a minimum 4.5:1 contrast ratio for normal text and 3:1 for large text.
Color Formats and Accessibility Reference
HEX codes (#RRGGBB) are the most compact color format for CSS and remain the most widely used. RGB (Red, Green, Blue) defines colors as a mix of three channels from 0-255. HSL (Hue, Saturation, Lightness) is more intuitive for humans -- hue is a degree on the color wheel (0-360), saturation controls color intensity, and lightness controls brightness. HWB (Hue, Whiteness, Blackness), added in CSS Color Level 4, is the most human-intuitive model, describing colors by their hue plus how much white and black are mixed in.
For web accessibility, WCAG defines three levels of contrast compliance: Level A (minimum), Level AA (standard requirement for most websites and apps), and Level AAA (enhanced). AA requires 4.5:1 for normal text and 3:1 for large text (18px bold or 24px regular). AAA requires 7:1 for normal text and 4.5:1 for large text. Shades are created by mixing a color with black (darkening), while tints are created by mixing with white (lightening). Both are essential for creating cohesive design systems with multiple variants of a brand color.
Frequently Asked Questions
What is a HEX color code?
A HEX color code is a 6-digit hexadecimal representation of a color. The first two digits represent red, the middle two green, and the last two blue. Each pair ranges from 00 (none) to FF (full intensity).
What is WCAG contrast ratio?
WCAG (Web Content Accessibility Guidelines) defines minimum contrast ratios for text readability. Normal text needs at least 4.5:1 ratio (AA) or 7:1 (AAA). Large text needs 3:1 (AA) or 4.5:1 (AAA).
What is HSL?
HSL stands for Hue, Saturation, and Lightness. Hue is the color wheel degree (0-360), saturation is the color intensity (0-100%), and lightness is how light or dark the color is (0-100%).