HEX to RGB, HSL, and HSB
#335a9c is parsed as 51 red, 90 green, and 156 blue, then formatted into the other color models. Alpha appears only when the input includes it.
#335a9c -> rgb(51, 90, 156) -> hsl(218, 51%, 41%)Type or pick a color and get it instantly in HEX, RGB, HSL, and HSB, each with its own copy button.
Pick a color, type one, or generate a random one.
Fill in the values, paste your text, or upload the file this tool works with.
Most tools update live as you type; a few use a single button. Either way, the result appears right on this page.
Copy, download, or share what the tool produces — you're always in control of the output.
Type or pick a color and see it instantly in HEX, RGB, HSL, and HSB, each ready to copy.
The text field accepts HEX (#335A9C or #335A9C80 with alpha), rgb()/rgba(), and hsl()/hsla() notation. An invalid value stays in the field so you can keep editing it, while the swatch and results keep showing the last valid color.
#335a9c is parsed as 51 red, 90 green, and 156 blue, then formatted into the other color models. Alpha appears only when the input includes it.
#335a9c -> rgb(51, 90, 156) -> hsl(218, 51%, 41%)Alpha is preserved in formats that support it. HSB is included for comparison with design tools, while CSS usually uses HEX, RGB(A), or HSL(A).
Yes. An 8-digit HEX value or an rgba()/hsla() value with an alpha channel is parsed and reflected in every format that supports it.
The browser's native color input only works with opaque HEX values. Alpha is preserved separately and shown in the RGB(A) and HSL(A) fields.
Both describe hue and saturation the same way. HSL's third value is lightness, where 50% is the purest version of the hue; HSB's third value is brightness, where 100% is the purest version. The same color has different numbers in each.
Yes. Three-digit HEX is expanded to six digits, so #369 becomes #336699. Use eight-digit HEX when you also need alpha.
Convert length, weight, temperature, and common units.
Convert CSV to JSON and JSON back to CSV.
Convert basic HTML and Markdown in both directions.
Convert BIN, OCT, DEC, and HEX values precisely.
Decode a resistor's color bands.
Convert SRT, VTT, ASS/SSA, and SBV, and fix subtitles that run early or late.
Check foreground and background contrast for UI work.
Merge, split, organize, and create PDFs.
Calculate percentages, discounts, tax, changes, and totals instantly.
Check text limits, characters, words, reading time, and frequency.