HEX ↔ RGB ↔ HSL Converter

Convert colors between HEX, RGB, and HSL instantly with a live swatch. Edit any field — the others stay in sync.

HEX ↔ RGB ↔ HSL Converter

Live

#C026D3

CSS output

/* HEX */ #c026d3
/* RGB */ rgb(192, 38, 211)
/* HSL */ hsl(292, 70%, 49%)

Key capabilities

  • Convert colors between HEX, RGB, and HSL instantly with a live swatch.
  • Runs in your browser
  • Free to use

How to use

  1. Enter a HEX, RGB, or HSL value.
  2. See the other formats update automatically.
  3. Copy the format you need.

How this tool works

  1. Enter a HEX, RGB, or HSL value.
  2. See the other formats update automatically.
  3. Copy the format you need.

Recommended settings

  • Use the default options first, then adjust if needed

Supported formats

Text / on-page input

File size and limits

  • Very complex multi-layer previews may feel slower on older phones.

Privacy

Color & CSS generators run entirely in your browser. Previews and conversions never upload your styles.

Common use cases

  • Use HEX ↔ RGB ↔ HSL Converter whenever you need: Convert colors between HEX, RGB, and HSL instantly with a live swatch.

Troubleshooting

Preview looks different after paste

Check for competing CSS on your page (resets, inherited colors). Copy the generated rule into an isolated stylesheet first.

FAQ

Does this upload my CSS?

No. Generators and converters run in your browser with live preview.

Do I need an account?

No. Open the tool, tweak controls, and copy the CSS.

Related tools