Color Converter: HEX, RGB and HSL

W Written byManaf Danawar 1 min read

Convert any color between HEX, RGB and HSL formats, pick a color visually, and get a scale of lighter and darker shades you can copy straight into CSS, Canva or Figma.

How to use it

  1. Pick a color or type it as HEX, rgb() or hsl().
  2. Copy the format you need from the table.
  3. Click any shade in the scale to copy a lighter or darker version.

Which format to use

HEX codes like #6C5CE7 are the most common in web design and brand guides. RGB describes the red, green and blue light in a color and is used in CSS and image editors. HSL (hue, saturation, lightness) is the easiest to adjust by hand: keep the hue and change lightness to build a consistent set of tints and shades for buttons, backgrounds and charts.

Frequently asked questions

Can I use 3-digit HEX codes?

Yes. #f0a is expanded to #ff00aa automatically.

How do I check text readability?

Use the contrast checker to test text and background colors against WCAG guidelines.

Related free tools

← See all free tools

Comments

Archive