About the Color Converter
Pick a color or paste a code in any format and get the matching HEX, RGB and HSL values ready to paste into CSS, Figma or any design tool.
Colours are written in different formats depending on where you work. Designers pick HEX codes in Figma or Photoshop, developers use RGB or HSL in CSS, and brand guides list all three. Converting by hand is slow and error-prone. This converter shows every format at once.
Pick a colour with the visual picker or paste a value in HEX, RGB or HSL, and the other formats update immediately. Short HEX codes such as #f60 are expanded automatically. HSL is especially useful for creating lighter or darker variants: keep the hue and saturation and change only the lightness. Copy any format with one click.
RGB values range from 0 to 255 for each channel, while HSL uses degrees for hue (0–360) and percentages for saturation and lightness. Knowing both helps when a design tool exports one format and your stylesheet or framework expects another.
How to use the Color Converter
- 1Use the picker or type a HEX, RGB or HSL value.
- 2All formats update together.
- 3Click Copy next to the format you need.
Key features
- HEX, RGB and HSL.
- Visual colour picker.
- 3-digit HEX support.
- Instant two-way conversion.
- Copy buttons for each format.
Practical uses
- Converting brand colours for CSS.
- Creating hover shades by adjusting HSL lightness.
- Matching colours between design tools.
- Checking colour codes in style guides.
- Turning a HEX code from a logo file into RGB for a presentation template.
Example
Orange #f97316 converts to rgb(249, 115, 22) and an HSL value with a hue of about 25°. Lowering the lightness gives a darker orange for hover states.
Tips and common mistakes
- Use HSL to build consistent colour scales.
- Check text and background pairs with the Color Contrast Checker.
- Copy colours from screenshots with an eyedropper in your design tool, then paste here.
Limitations
- Alpha transparency is not supported.
- CMYK for print is not included.
Privacy
Colours are converted locally.
Frequently asked questions
What is the difference between RGB and HSL?
RGB mixes red, green and blue light. HSL describes hue, saturation and lightness, which is easier for making lighter or darker shades.
Does it support 3-digit HEX?
Yes. #f60 is read as #ff6600.
Are alpha (transparency) values supported?
Not in this version. Only solid colors are converted.
Why do printed colours look different?
Screens use light (RGB) while printers use ink (CMYK), which has a smaller range of colours.
What does HSL lightness 50% mean?
It is the purest version of the hue. Lower values move towards black and higher values towards white.