Design tool

Color Converter

Convert HEX, RGB, and HSL values while choosing colors for UI tokens, CSS variables, design notes, and prototypes.

Convert colors for CSS and design tokens

Design work often moves between HEX values in mockups, RGB values in screenshots, and HSL values in CSS systems. This converter turns one color format into the others and shows a live swatch so you can catch typos before copying a value into code.

Use short or long HEX values, rgb(...) values, or hsl(...) values. The readable foreground hint helps you decide whether dark or light text is likely to be clearer on the selected color.

Common color tasks

  • Convert a HEX color from a design file into RGB for CSS.
  • Find the HSL version of a brand color for easier lightness changes.
  • Check a pasted color against a visible swatch before using it.

FAQ

Which color formats are supported?

The converter supports HEX, RGB, and HSL input formats.

Does this calculate full accessibility contrast?

The first version gives a basic readable foreground hint. Add WCAG contrast ratios before using it as an accessibility audit tool.

Can I paste CSS color names?

Not yet. Use HEX, RGB, or HSL values for this version.