Color Converter
Convert colors between HEX, RGB and HSL formats
Convert colour formats, build gradients and check contrast before shipping a palette.
Grouped by what you want to get done. Star a tool to find it again on the homepage.
Convert colors between HEX, RGB and HSL formats
Generate harmonious color palettes from a seed color with multiple harmony rules
Check WCAG AA/AAA contrast ratio between text and background colors
Build CSS linear and radial gradients visually and copy the CSS code
Often used alongside these, from other categories.
Colour on the web is several different models wearing the same clothes. Hex, RGB, HSL and OKLCH all describe the same pixel, but they make different operations easy: HSL makes "slightly lighter" obvious, hex makes nothing obvious but is what design tools hand you. Converting between them is exact arithmetic, which is why it belongs in the browser, next to the page you are styling.
Adjusting lightness or saturation is trivial in HSL and awkward in hex. Building a palette where every step looks equally different needs a perceptual model such as OKLCH, because equal numeric steps in HSL are not equal steps to the eye.
WCAG asks for a 4.5:1 ratio for body text and 3:1 for large text. The ratio depends on relative luminance, not on how different two colours look side by side, which is why a mid-grey on white can fail while a colour pairing that looks bolder passes.
A palette tuned on a light background frequently fails on a dark one, because contrast is not symmetric: inverting a design does not preserve its ratios. Every colour that carries meaning needs a value defined for each theme.