MicroSAS
EN

Colors: converter, palettes and contrast

Convert between HEX, RGB, HSL and CMYK, generate harmonious palettes and shade scales, check accessible contrast (WCAG) and extract the colors of any image.

  • Free
  • No sign-up
  • Processed in your browser

Click the box to open the color picker

You can type any format: “#e11d48”, “rgb(225 29 72)”, “hsl(350 77% 50%)” or “cmyk(0,87,68,12)”.

 

Shade scale (50-950)

Click any color to copy its HEX code.

 
Contrast ratio—

Large sample heading

This is a paragraph of normal text to check it reads easily. WCAG guidelines require a minimum contrast of 4.5:1.

Small text · 12 px

How it works

  1. 1

    Pick a color

    Use the picker or type the code in any format: it is converted instantly into all the others.

  2. 2

    Create your palette

    Generate complementary, analogous or triadic colors and a 50 to 950 shade scale, ready for CSS or Tailwind.

  3. 3

    Check accessibility

    Verify the text is readable on the background and, if not, we suggest a shade that passes.

What contrast does my website need?

According to WCAG 2.1, normal text needs a ratio of at least 4.5:1 (level AA) and large text (24 px, or 19 px bold) 3:1. Level AAA requires 7:1 and 4.5:1 respectively. It is mandatory for public-sector websites in many countries and highly recommended for any site: it improves readability on mobile and in sunlight.

Ideas for using it

Brand identity

Start from your logo color and build a consistent palette for web, social media and stationery.

Accessible websites

Check that buttons and gray text meet the WCAG minimum contrast.

From screen to print

Get the CMYK approximation of your RGB colors to send to the printer.

Inspiration from photos

Extract the palette of a photo you like to use it in your design.

Frequently asked questions

What is the difference between RGB and CMYK?

RGB mixes light (screens) and CMYK mixes ink (print). The CMYK conversion is approximate: for professional printing, use your printer’s color profile.

What is HSL?

It describes a color by hue (0-360°), saturation and lightness. It is the most convenient format to create lighter or darker variations of the same color.

How is the contrast ratio calculated?

The relative luminance of both colors is compared with the WCAG formula: (L1 + 0.05) / (L2 + 0.05). The result ranges from 1:1 to 21:1 (black on white).

Are the palettes free to use?

Yes, colors have no rights: you can use the palettes you generate freely.

More free tools