Skip to content

HEX to RGB Color Converter

Paste any color code, or pick a color, and get the HEX, RGB and HSL values ready for CSS, Figma or Canva.

Runs in your browser. Nothing you enter is uploaded or stored.

How to use HEX to RGB Color Converter

  1. Type a HEX, RGB or HSL value, or use the picker.
  2. Check the preview.
  3. Copy the format you need.

Questions

What is the difference between HEX and RGB?

They describe the same color. HEX writes the red, green and blue values in base 16, for example #2B4FE0. RGB writes them as numbers from 0 to 255, for example rgb(43, 79, 224).

Can I enter short HEX codes like #fff?

Yes. Three-digit codes are expanded, so #fff becomes #FFFFFF.