Color Picker Online — HEX, RGB, HSL Converter

Pick a color — every code format appears instantly.

A color picker for designers and developers: pick any color and instantly get its HEX, RGB, and HSL codes, generate complementary, analogous, and triadic palettes, and check WCAG contrast ratios for accessible text. Everything runs in your browser — no sign-up, no uploads.

Build a palette from your color:

Click any swatch to copy its HEX code.

Contrast ratio checker (WCAG)

How to use the color picker

  1. Pick a color with the color input, or type a HEX/RGB/HSL value you already have.
  2. Copy any format — HEX, RGB, and HSL update together; click a swatch to copy its HEX.
  3. Generate palettes — one click builds complementary, analogous, or triadic schemes from your color.
  4. Check contrast — enter text and background colors to verify WCAG AA/AAA compliance.

Picking accessible color pairs

Good-looking isn’t enough — text must be readable. Quick rules:

  • Body text: aim for 7:1 (AAA) when you can; 4.5:1 (AA) is the minimum.
  • Large headings: 3:1 is acceptable for AA.
  • Never rely on color alone for meaning — pair it with labels or icons.
  • Test dark mode: a pair that passes on white may fail on dark backgrounds.

The contrast checker above does the math for you — green “Pass” means you’re good.

Frequently asked questions

How do I find the HEX code of a color?

Click the color box in the tool above (or type a color you already have), and the HEX code appears instantly in the HEX field — bright blue becomes #1a73e8, for example. Click any swatch to copy it.

What's the difference between HEX, RGB, and HSL?

HEX is a 6-digit hexadecimal code (e.g. #ff5733) commonly used in CSS. RGB states red-green-blue intensity from 0–255 (e.g. 255, 87, 51). HSL states hue (0–360°), saturation, and lightness — the most intuitive for picking color variations. They all describe the same color; this tool converts between them automatically.

What are complementary, analogous, and triadic colors?

Complementary colors sit opposite on the color wheel (e.g. blue–orange) — strong contrast. Analogous colors are neighbors (blue, blue-green, green) — calm and harmonious. Triadic colors are three evenly spaced (120°) hues — balanced yet lively. Click the buttons above to see each palette.

What contrast ratio is needed for accessibility (WCAG)?

WCAG 2.1 requires at least 4.5:1 for normal text (level AA) and 7:1 for level AAA. Large text (≥24px, or ≥19px bold) needs only 3:1 for AA. The contrast checker above computes the ratio and labels it Pass/Fail automatically.

Is my chosen color uploaded or stored?

No. All conversions and calculations run in your browser — no color data is sent or stored anywhere.

Also available in