Skip to content

Color converter

Convert colors between HEX, RGB and HSL and check their contrast.

Processed on your device

  1. How it works
  2. 1Type a color in any format or use the picker.
  3. 2Copy the value in the format you need.
Loading tool…

About Color converter

Convert colors between HEX, RGB and HSL by typing them in any format or using the picker. It shows a range of shades of the same color and its contrast with white and black text according to the WCAG accessibility guidelines.

Example: type #4F5BFF to get its RGB and HSL equivalents to paste into your CSS. Before using it as a button background, check the contrast: if white text does not reach 4.5:1, pick a darker shade from the range.

Frequently asked questions

How much contrast does text need?

At least 4.5:1 is recommended for normal text and 3:1 for large text.

Which format should I use in CSS?

All are valid. HEX is the most common; HSL makes it easy to create lighter or darker variants.

  • QR code generator

    Create custom QR codes for text, links and more, as PNG or SVG.

  • Password generator

    Generate strong passwords with cryptographic randomness.

  • Calculators

    Percentages, discounts, tips, BMI, dates and loans.

  • Merge PDF

    Combine several PDFs into a single document in the order you choose.