Which format for which job
HEX is the lingua franca. Compact, universally understood, and completely opaque — you cannot tell by looking whether two hex codes share a hue.
RGB is what the screen actually does. Useful when you need an alpha channel or are working with canvas and image data.
HSL is readable and convenient for a quick tweak, but its lightness axis does not match perception. A yellow and a blue at 50% HSL lightness differ by about thirteen times in measured luminance.
OKLCH is what you want for anything systematic. Perceptually uniform lightness, so equal steps look equal, and the three components are genuinely independent — you can change lightness without the hue appearing to shift.
CMYK here is a naive device conversion with no ICC profile, which is what every web tool produces. Indicative only.
Questions people ask
Straight answers. Each one links directly: copy the address after opening it.
What is OKLCH and why should I use it?
OKLCH is a perceptually uniform colour space — equal steps in its lightness axis look equal to the eye, which is not true of HSL. That makes it the correct space for building ramps, generating dark-mode variants, and adjusting contrast without shifting the apparent hue. It is supported in every major browser.
Why does my CMYK value not match my printer?
Device CMYK conversion without an ICC profile is an approximation, and every web tool does the same naive conversion. For print, convert in software that knows your paper and press profile. Treat the value here as an indication, not a specification.
Is HSL lightness the same as OKLCH lightness?
No, and this is the most common source of confusion. A yellow and a blue at the same HSL lightness differ enormously in perceived brightness — about thirteen times in measured luminance (0.928 against 0.072). OKLCH lightness corresponds to what you actually see.