HEX
HEX colors are compact and common in design handoff, tokens and CSS variables.
Browser-based developer tools
Convert HEX, RGB and HSL colors and preview the color swatch in your browser.
Reference notes
HEX colors are compact and common in design handoff, tokens and CSS variables.
RGB output is useful for CSS, canvas work and systems that store separate red, green and blue channels.
HSL is easier to reason about when adjusting hue, saturation and lightness for interface palettes.
Frequently asked
HSL separates hue, saturation, and lightness into independent values, making it easier to create a consistent color palette by adjusting lightness alone, without recalculating an entirely new hex code.
Yes, HEX with an 8-digit alpha channel, rgba(), and hsla() values are all converted so you can carry transparency across formats consistently.
This usually comes down to rounding differences when converting between color spaces, or a difference in color profile handling between the browser and a design tool like Figma or Photoshop.