Nothing uploaded

Convert HEX to HSL

Type a hex color code to get it as hsl(): hue, saturation and lightness, the easiest way to make lighter, darker or softer versions of a color in CSS.

HEX, rgb(), hsl(), hsv(), cmyk(), oklch() or a CSS name such as tomato.

Contrast

On white 5.31:1

  • AA, normal text: Pass
  • AA, large text: Pass
  • AAA, normal text: Fail
  • AAA, large text: Pass

On black 3.96:1

  • AA, normal text: Fail
  • AA, large text: Pass
  • AAA, normal text: Fail
  • AAA, large text: Fail

For text in this color on a white or black background (WCAG 2). Large text is 24 px, or 18.66 px bold.

Formats

Read as HEX.

HSL
hsl(248.3, 53.5%, 57.8%)
HEX
#6a5acd
RGB
rgb(106, 90, 205)
HSV (HSB)
hsv(248.3, 56.1%, 80.4%)
CMYK (approximate)
cmyk(48.3%, 56.1%, 0%, 19.6%)
OKLCH
oklch(54.36% 0.1712 285.54)
CSS name
slateblue

CMYK uses the simple formula, without a color profile. Printers convert with their own profile, so treat it as a starting point.

What you type stays on this device. Nothing is uploaded.

How to convert HEX to HSL

  1. Type or paste a hex code, such as #6a5acd.
  2. Read the HSL value at the top, with every other format under it. It updates as you type.
  3. Copy what you need, and check how readable the color is on white and on black.

Questions

Is anything sent to a server?

No. Colors are converted in your browser on this device, as you type, and nothing is stored.

What do the three HSL numbers mean?

Hue is the place on the color wheel, in degrees: 0 is red, 120 green and 240 blue. Saturation goes from gray (0%) to full color (100%), and lightness from black (0%) through the pure color (50%) to white (100%).

Why does the HSL value have decimals?

Hex codes name about 16.7 million colors and whole-number HSL can’t name them all, so rounding to whole numbers could bring you back one shade off. One decimal place is enough to return to exactly the same hex code.

Use DigiTools offline

Keep every tool in English on this device, so they work without an internet connection.

AI models aren’t included: each AI tool downloads its own the first time you use it.

Checking the download size…

Add DigiTools to your Home Screen

  1. Tap the Share button in your browser’s toolbar.
  2. Choose “Add to Home Screen”. You may need to scroll down to find it.
  3. Tap Add.

DigiTools then opens from your Home Screen like an app, and tools you’ve opened work offline.