UTILITY

Color Picker, HEX / RGB / HSL Converter & Contrast

Pick & convert HEX / RGB / HSL colors and verify WCAG AA/AAA contrast.

HEX#4F46E5
RGBrgb(79, 70, 229)
HSLhsl(243, 75%, 59%)
WCAG Accessibility Contrast- : 1

Large Heading Sample

Sample body paragraph text to verify crisp readability across web and mobile screens.

WCAG AA (Normal ≥ 4.5)PASS
WCAG AAA (Normal ≥ 7.0)PASS
WCAG AA (Large ≥ 3.0)PASS
WCAG AAA (Large ≥ 4.5)PASS

How to Use This Tool

  1. Select foreground and background colors or type any valid HEX/RGB code.
  2. Copy live HEX, RGB, CSS rgb(), and HSL formats with one click.
  3. Inspect the live Contrast Ratio badge and WCAG AA / AAA pass indicators.
  4. Click Swap Colors anytime to invert text and background pairing.

Key Benefits & Tips

  • WCAG 2.1 Contrast Audit: Ensures crisp readability for UI buttons and typography.
  • Instant Multi-Format Sync: Edit HEX or sliders and get synced RGB & HSL codes.
  • Live Typography Preview: Tests real sample body and heading text over your colors.

Frequently Asked Questions

What contrast ratio passes WCAG AA and AAA accessibility standards?

For normal body text, WCAG AA requires at least 4.5:1 and AAA requires 7.0:1. For large text (18pt+ or 14pt+ bold), AA requires 3.0:1 and AAA 4.5:1.

What is the difference between HEX, RGB, and HSL color formats?

HEX encodes Red-Green-Blue bytes in hexadecimal (#RRGGBB), RGB uses 0–255 channels, and HSL represents Hue (0–360°), Saturation, and Lightness percentages.

Can I type 3-digit HEX shorthand like #f00?

Yes. Both 3-digit shorthand (#f00) and full 6-digit HEX codes (with or without #) are parsed automatically.