HelperCrate

Color Converter

Convert HEX, RGB, HSL and CSS variables, with a live swatch plus nine tints and shades.

Your files never leave your device. Everything runs in your browser.

What Color Converter does

Colour values arrive in different formats depending on the tool that produced them: design software exports hex, CSS wants rgb or hsl, and documentation often needs all three side by side. Color Converter takes one hex value and returns the matching RGB, HSL and CSS custom-property forms in a single view with a live swatch.

Below the conversion rows is a tint and shade ramp built from the current colour. Four lighter steps mix the colour toward white, four darker steps mix it toward black, and the labels show the mix percentage. Clicking any swatch loads it as the working colour, which makes the tool a quick way to build a palette from one brand value.

The converter covers screen colour formats only. It accepts three-digit and six-digit hex codes, does not handle alpha, and does not attempt CMYK, OKLCH or ICC profiles. HSL output is rounded to whole numbers, so treat it as a readable approximation rather than a round-trip guarantee.

How to use Color Converter

  1. Choose a colour with the picker or type a hex code such as #3B82F6 into the text field.
  2. Watch the HEX, RGB, HSL and CSS variable rows update as you type.
  3. Review the nine swatches below the rows: the base colour, four tints and four shades.
  4. Click a swatch to make that colour the current one.
  5. Press Copy on any row to copy its value.

Features

Tips and common mistakes

Frequently asked questions

Which colour formats does the tool support?

HEX, RGB, HSL and the CSS custom-property syntax. HSV, CMYK and OKLCH are not included, and named CSS colours such as tomato must be converted to hex first.

Can I convert a colour with transparency?

No. Only opaque three-digit and six-digit hex values are recognised. Eight-digit hex with an alpha channel is ignored, and the last valid colour remains in the output.

How are the tints and shades calculated?

Each channel is moved toward 255 for tints or toward 0 for shades by 20, 40, 60 and 80 percent, then rounded to the nearest integer. The base colour is shown as +0%.

Why does the output not change when I type a new code?

The typed value was not a valid three-digit or six-digit hex code, so the converter kept the previous colour, which the picker continues to supply. Correct the hex or use the picker to set a new colour.

Are the HSL numbers exact?

Hue, saturation and lightness are rounded to whole numbers for readability. Converting back to RGB can therefore shift a channel slightly, which is fine for CSS but worth knowing in a colour pipeline.

Is anything uploaded?

No. The preview, conversions and swatches are all computed in your browser.

Colour values and previews are processed in your browser — nothing is uploaded.