mtools.lol

Color Converter

Convert colours between HEX, RGB, HSL, HSV, CMYK and OKLCH, and check contrast.

How it works

  1. 1Type or pick a colour.
  2. 2Copy the format you need.
  3. 3Optionally compare it with a second colour for contrast.

Features

  • Reads HEX (3, 4, 6 or 8 digits), rgb(), hsl() and all 148 CSS colour names.
  • Converts to HEX, RGB, HSL, HSV, CMYK and OKLCH.
  • WCAG 2 contrast ratio with AA and AAA results.
  • Transparency supported.

Frequently asked questions

Is CMYK here print-accurate?

It's the simple formula without a colour profile. Ask your printer for their profile for exact results.

What contrast do I need?

4.5:1 for normal text and 3:1 for large text to meet WCAG AA.