Skip to main content
Y YunoDB Tools 中文 AI tools directory ↗

HEX to RGB Color Converter & Contrast Checker

Convert any color between HEX, RGB and HSL. Pick a color with the color picker or type a value such as #10b981, rgb(16, 185, 129) or hsl(160, 84%, 39%), and the other formats update. Below, the WCAG contrast checker takes a text color and a background color, shows the contrast ratio and a live sample, and marks AA normal, AAA normal and AA large text as pass or fail. All calculations run in your browser.

Share Twitter Reddit

WCAG contrast check

Sample Text 12345

The quick brown fox jumps over the lazy dog.

Contrast ratio
: 1
AA normal AAA normal AA large

How to use the Color Converter & Contrast Checker

  1. Pick a color with the color picker, or type a value into the HEX, RGB or HSL field and press Enter.
  2. The other formats update automatically; click Copy next to the one you need.
  3. Under WCAG contrast check, choose a Text color and a Background to see the contrast ratio and the AA/AAA pass or fail labels.

Frequently asked questions

Type or paste the HEX value, for example #10b981, into the HEX field. The RGB and HSL values appear in the fields below, ready to copy. Three-digit HEX such as #0f8 also works.
They describe the same color in different ways: HEX is hexadecimal (#RRGGBB), RGB lists red, green and blue values, and HSL uses hue, saturation and lightness, which is handy for fine-tuning.
Normal text needs at least 4.5:1 for AA and 7:1 for AAA. Large text (about 18pt, or 14pt bold) needs at least 3:1 for AA.
No. All conversions and contrast checks are calculated in your browser.

Looking for more AI and software tools? Browse the yunodb.com tools directory ↗.