ToolCozy
JSON Format / DiffHOTBase64 CodecHOTURL CodecNEWTimestamp ConverterNEWUUID GeneratorHash CalculatorJWT DecoderQR Code GeneratorUnit ConverterNumber BaseData ConverterSQL FormatterIP Lookup
Image CompressHOTColor ConverterImage ConvertImage CropNEWApp Store ScreenshotNEW
Regex TesterNEWWord CounterText DiffMarkdown Preview

More Products

Playbit Games

Free online HTML5 games — play instantly in your browser

Kaola Screenshot

App Store screenshot generator with device frames & templates

Pillease

Simple pill reminder app — never miss a dose again

© 2026 ToolCozy·Privacy·Feedback

Color Converter

Convert between HEX / RGB / HSL with visual preview

About this tool

Web colors are typically expressed in three formats: HEX (#RRGGBB) for CSS, RGB (rgb(r, g, b)) for direct math, and HSL (hsl(h, s%, l%)) for human-friendly tweaks like 'a bit lighter' or 'a bit more saturated'. They all describe the same color but optimize for different workflows.

This converter takes a color in any of the three formats and shows the other two at the same time, plus a visual swatch so you can see what you're typing. Useful when copying a HEX from a design file and needing the HSL to nudge a hue, or vice versa.

How to use

Convert between formats

  1. Type a color into any of the HEX / RGB / HSL fields.
  2. The other formats and the preview swatch update automatically.
  3. Click the copy icon next to any field to grab the value in that format.

Examples

Brand red across formats

Input
HEX: #FF5733
Output
RGB: rgb(255, 87, 51)
HSL: hsl(11, 100%, 60%)

Pure cyan

Input
HSL: hsl(180, 100%, 50%)
Output
HEX: #00FFFF
RGB: rgb(0, 255, 255)
Frequently asked questions
Does this support alpha (transparency)?

Not currently — the converter handles opaque colors only. For RGBA / HSLA / 8-digit HEX (#RRGGBBAA) keep the alpha channel separate; the rendered swatch shows the underlying RGB color.

What color space is used?

Standard sRGB, the same space CSS uses by default. We don't handle wide-gamut color spaces like Display-P3 or oklch — they need a different math and aren't yet universally supported in browsers.

HSL or HSV — what's the difference?

HSL's L (lightness) goes from 0 (black) through pure color at 50% to 100 (white). HSV's V (value) goes from 0 (black) to pure color at 100. CSS uses HSL; many design tools (Photoshop, Figma's color picker) use HSV. They're related but not identical.

Are CSS named colors like 'tomato' supported?

Not as input — type the HEX equivalent (#FF6347 for tomato). All 147 CSS named colors map to specific HEX values; you can look up the table in any CSS reference.

Will the swatch I see exactly match my design tool?

Close, but never perfectly. Browsers and design tools color-manage slightly differently, and your monitor's calibration matters more than the color value. For brand colors that need to be exact across mediums, work in a color-managed tool and export to HEX as the final step.