Color converter
Convert colors between HEX, RGB and HSL, with alpha and a tint palette.
Related tools
Color converter
Paste a color in any notation CSS understands — #3b82f6, rgb(59, 130, 246), hsl(217, 91%, 60%) — and the other two come back instantly. Short hex like #f00 is expanded, the leading hash is optional, and both the old comma syntax and the newer space syntax are read without being told which one you used. Put one color per line and a whole palette converts at once, which is exactly what you want when a design hand-off arrives as a column of hex codes and your stylesheet is written in HSL.
Alpha survives the trip however you write it: rgba(59, 130, 246, 0.5), rgb(59 130 246 / 50%) and the 8-digit hex #3b82f680 all describe the same half-transparent blue, and each converts to the others. Turn off “Keep alpha channel” when you only want the opaque color. The output format menu narrows the result to hex, RGB or HSL alone — handy for bulk lists — and the syntax menu decides between rgb(255, 0, 0) and rgb(255 0 0 / 0.5), so what you copy pastes straight into the codebase you already have. Uppercase hex is one checkbox away.
Switch the tint palette on and every color gains a table of lighter and darker variants, mixed evenly toward white and toward black. It is a quick way to derive hover states, borders and disabled styles from one brand color without opening a design tool. Pick one to eight steps per side; the base color sits in the middle at 0%.
Everything runs in your browser — no upload, no server round-trip, no account. Unreleased brand colors stay on your machine. Lines that aren't colors are left in place as a CSS comment and counted in the tally, so one typo never hides the rest of a long list. Named CSS colors such as rebeccapurple are not supported; convert those to hex first.