Color Converter and Contrast Checker

Convert colors between HEX, RGB, HSL, and HSV and check text contrast against WCAG requirements.

Files and content are processed locally in your browser and are not uploaded to our server.

About this tool

Enter a color as HEX, RGB, HSL, or HSV and view its equivalent values in the other formats. You can also choose text and background colors and check whether their contrast meets WCAG AA or AAA requirements for normal and large text.

How to use

  1. Convert between HEX, RGB, HSL, and HSV
  2. Immediate color preview
  3. Calculate WCAG contrast ratios
  4. Display AA and AAA results
  5. Copy any color value
  6. Enter a color: Enter a HEX, RGB, HSL, or HSV value, or use the color picker.
  7. Copy a value: Copy the format needed for CSS or a design guide.
  8. Check contrast: Choose text and background colors and check their readability.

Examples

Limitations

FAQ

Does transparency affect contrast?
Yes. The actual contrast of semi-transparent text depends on the background underneath it. The simplified preview mainly calculates contrast using opaque colors.
What is the difference between HSL and HSV?
HSL measures lightness while HSV measures value. Both are shown so you can match the convention used in your design or development tools.
What contrast ratio is required for WCAG AA?
Normal text generally needs a ratio of at least 4.5:1. Large text needs at least 3:1.