Color Format Converter

Paste a hex colour and get it back as RGB, HSL and HSV at the same time. Useful when a design tool wants one notation and you only have another — no need to open a full graphics application to translate a single value.

One Colour, Four Ways of Writing It

Every notation here describes the same colour on an sRGB screen, and the conversion between them is exact arithmetic rather than a lookup. Hex and RGB are the same idea expressed in different bases; HSL and HSV are polar descriptions that replace the three channels with a hue angle and two proportions, which is why designers reach for them when adjusting a colour rather than specifying one.

Converting a Colour

  1. Type a hex value into the text field with or without the leading hash. Both are accepted.
  2. Or use the colour picker to choose visually. Moving the picker updates the hex field, so the two stay in step whichever way you work.
  3. Three-digit shorthand works. A value like #abc is expanded by doubling each digit to #aabbcc before conversion, which is the standard CSS interpretation.
  4. Read all four notations at once from the result panel. There is no mode to select and no format to choose between — everything is computed together.
  5. Use the copy button to lift the whole result set at once rather than selecting the text by hand.
  6. If the input cannot be parsed, the panel says so rather than showing a wrong value. Anything that is not three or six hexadecimal digits is rejected.

Four Conversions and What They Show

The values below are exactly what the page returns, rounded to whole numbers as the page rounds them.

When to Reach for Each Notation

AlternativeNotes
HEX for handing colours overThe most compact form and the one that survives copy and paste between every tool and design system. Hard to reason about by eye, since it is base sixteen and the channels are not aligned in a way you can read at a glance.
RGB for codeWhat the browser actually uses. Choose it when you are writing a value that will be manipulated by script, since the channels are already separate numbers.
HSL for adjustingThe most useful form for making a colour variation. Keeping the hue and changing lightness produces a tint or shade that stays recognisably the same colour, which is difficult to achieve by editing hex values.
HSV for pickersWidely used in tools because it maps neatly onto a square colour field with a hue slider. Value runs from black to full brightness, whereas lightness in HSL runs from black through the pure colour to white.

What This Converter Deliberately Leaves Out

It handles four screen notations and nothing else, which is worth knowing before you go looking for a conversion that is not there.

Colour Conversion Questions

Why does white show a hue of zero degrees?

Because hue is undefined when saturation is zero. The formula computes the angle relative to the largest and smallest channels, and when all three are equal the difference between them is zero, so the code falls back to reporting zero. It is a placeholder rather than a claim about white. The same applies to pure black and to any grey.

Why is the saturation different in HSL and HSV for the same colour?

Because they are measured against different reference points. HSL expresses saturation as a share of the distance from grey to the pure colour, while HSV expresses it relative to the brightest channel. A dark saturated colour therefore reads high on HSV saturation and lower on HSL saturation, which is why a value like #0f172a gives 64 percent in one and 47 percent in the other.

Does typing a colour here send it anywhere?

No. There is no network request involved in the conversion and no state is stored. The page is four small arithmetic functions running in the browser, so it works with the tab offline and leaves nothing behind.

Why does my three-digit code come back as six digits?

Because three-digit hex is shorthand for six-digit hex, with each digit duplicated — #abc means #aabbcc, not #0a0b0c. The page expands the input first and then converts, so the output is always the full six-digit form. This is the same rule CSS applies.

Last verified: October 3, 2026

Launch Color Format Converter

All Tools · All Tools · About · How We Test · Contact · Privacy

Maintained by Huang Bin · Last updated October 3, 2026

Loading Vue Application