Colour Converter: HEX, RGB, HSL and OKLCH, With Shades
Convert any colour between HEX, RGB, HSL, OKLCH and CMYK, see its contrast with white and black, and get ten shades from 50 to 900 ready as CSS variables.
Paste your main logo colour here, then copy the ready CSS variables into your theme settings or Custom CSS. Use 50 or 100 for backgrounds, 500 or 600 for buttons and 800 or 900 for text, then check text and background pairs in the contrast checker.
Key terms
Short definitions of what you meet along the way.
HEX
A colour written as six hex digits such as #1557b0.
HSL
Colour as hue, saturation and lightness; easy to lighten or darken.
OKLCH
A modern format where lightness looks even to the eye across hues.
We use necessary cookies to run the site, and Google Analytics to measure visits only if you agree. You can change your choice at any time from “Cookie settings”. Privacy policy