Color Converter

Design Client-side color hex rgb hsl converter design

This tool runs entirely client-side, in your browser: your data is never sent anywhere.

What it does

Enter a color in HEX (#3366ff), RGB (rgb(51, 102, 255)), or HSL (hsl(226, 100%, 60%)) format, and instantly get all three representations plus a live color swatch preview.

Try it

Result will appear here.

How it works

  1. The input is parsed depending on its format:
  1. Once the color is known as RGB, it's converted to HEX and HSL for display, so all three formats are always shown together.
  2. The swatch preview uses the parsed color directly as a CSS background-color.

Everything runs locally in your browser — great for quickly checking what a color looks like or converting between formats used by different tools/frameworks.