Convert, compare and check contrast before it ships
Colour in CSS is easy to write badly. The same colour has three common representations, each convenient in a different situation, and converting between them by hand is the kind of arithmetic that produces a nearly-right shade and an afternoon of confusion.
hwb(), lab() and oklch(); HSL remains the most intuitive for hand-tuning.Define a base hue and saturation, then vary lightness in steps β typically 10β15% for hover and active states. This produces a coherent palette instead of eleven almost-identical greens. Because HSL lightness is not perceptually uniform, check the result rather than assuming a 10% step looks like a 10% step.
Text must be readable. WCAG's AA level asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text; AAA asks for 7:1 and 4.5:1. The colour picker shows contrast against black and white so you can see immediately whether a chosen shade passes. Low-contrast grey-on-grey is the single most common accessibility failure in otherwise well-built interfaces.
About one in twelve men has some form of colour vision deficiency, most commonly red-green. Never encode meaning in hue alone β pair colour with an icon, a label or a pattern. A red/green status dot that is the only signal is unreadable for a meaningful share of your users, and it fails automated accessibility checks too.
Hexadecimal shorthand (#fff) expands to #ffffff and is safe in CSS but not in every tool β expand it before pasting into design software that expects six digits. Alpha is expressed as an eighth hex pair or a fourth channel, and semi-transparent whites for overlays behave very differently on light and dark backgrounds, so test both themes.
Related: the colour picker guide and free developer tools.
Paste the HEX value into the colour picker and read the RGB channels, or split the six digits into three pairs and convert each from base 16. The tool does it instantly and also gives HSL.
HEX for design tokens and handoff, RGB/RGBA when you need alpha per channel, and HSL for generating hover and accent variants programmatically.
WCAG AA requires at least 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1 and 4.5:1. Check the ratio before shipping a palette.
Yes β it runs in the browser with no signup, and the conversions happen locally.