AllMyCalculators

Colour Converter

Moves a colour between the formats used by web, design and print tools.

HEX like #3366cc. Otherwise numbers split by commas: RGB 51, 102, 204. HSL 220, 60, 50. CMYK 75, 50, 0, 20.

HEX
—

Share sends a link that reopens these numbers. Copy details pastes the full breakdown as a list.

RGB —
HSL —
HSV —
CMYK —
Reading this —

The formula

L = (max + min) ÷ 2 K = 1 − max

Max and min are the largest and smallest of the red, green and blue values, each from 0 to 1. HEX is the same RGB values written in base 16.

What to watch out for

HSL and HSV results are rounded to whole numbers, so a round trip can shift a value by one.

Frequently Asked Questions

What is #3366cc in other formats?

rgb(51, 102, 204), hsl(220, 60%, 50%), and CMYK 75%, 50%, 0%, 20%.

What is the difference between HSL and HSV?

They share a hue. In HSL, full lightness is always white. In HSV, full value with full saturation is the pure colour.