HSV Color Converter

Hex colour—
Hue (degrees)—
Saturation—
Value / brightness—
Red (0–255)—
Green (0–255)—
Blue (0–255)—

How HSV Color Converter is calculated: Value = max(R,G,B) ÷ 255; saturation = (max − min) ÷ max; hue from the largest channel; HSV → RGB via chroma, sector, and match value.

What is a HSV color converter?

A HSV color converter converts colours between RGB — the model screens use — and HSV — hue, saturation, and value, the model designers think in — in both directions. Enter the colour values and the direction to convert them in, and it gives you the answer at once.

People use it for far more than curiosity. Designers use it every day, because HSV is how people think about colour: the hue is the colour itself, the saturation is how vivid it is, and the value is how bright. Anyone who has ever picked a colour by its hue and then made it paler or darker has used HSV, whether they knew the name or not.

The converter runs in your browser and never sends anything anywhere. There is no reason for a simple conversion to collect personal information. Type the value, read the answer, and close the page — nothing is stored.

The answer is immediate and exact — there is no rounding in a time conversion, and the same input always gives the same answer. That is the difference between a converter and a calculator: nothing is estimated, and nothing is close enough.

How HSV colour works

HSV splits a colour into three parts that match how we see it. Hue is the position on the colour wheel, from 0 to 360 degrees: 0 is red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, and 300 is magenta. Saturation is how much colour there is, from 0 (grey) to 100% (fully vivid). Value is how bright it is, from 0 (black) to 100% (full brightness).

The hue, saturation, and value are the main figures: 0, 100%, and 100% for the default. The RGB values and the hex code are the same colour in the screen model, so you can check the conversion against what you see on screen.

The other direction starts with the chroma — value times saturation — and the hue sector, which is the hue divided by 60. The chroma and a second value, X, are placed into the three channels according to the sector, and a match value is added to all three to set the brightness. The arithmetic is short, and the converter does it in your browser.

The whole conversion is a few lines of arithmetic, and it runs in your browser, which is why the answer appears as you type. There is no server, no lookup table, and no database — just the rules of the two systems, applied to your input.

Hue — the input that changes the answer

Hue is the most important input, and the one people misunderstand. Hue is a circle, not a line: 0 and 360 are the same colour — red — and a hue of 359 is a red that is almost magenta. A colour picker that shows hue as a slider from 0 to 360 is showing a wheel, and the ends meet.

The second input trap is saturation. A saturation of 0 means grey, whatever the hue is — a grey has no hue, and the converter gives a hue of 0 for it, which is a convention, not a fact. A saturation of 100 means the colour is as vivid as it can be, and lowering it washes the colour out towards grey.

The third trap is value. A value of 0 means black, whatever the hue and saturation are — and a value of 100 means the colour is as bright as it can be. Lowering the value darkens the colour towards black, while lowering the saturation washes it towards grey, and the two are not the same.

The calculator checks the input as you type. A value that cannot be read — a missing marker, a minute above 59, a day that does not exist — is rejected with a message, instead of being guessed at. A converter that guesses is worse than one that says it does not know.

A worked example

First, the default on this page. Red (255, 0, 0) to HSV: the hue is 0 degrees, the saturation is 100%, and the value is 100%. The hex is #FF0000. Red is the simplest HSV colour there is — a hue of 0, fully saturated, and fully bright.

Second, a blue: (37, 99, 235) to HSV is a hue of 221 degrees, a saturation of 84.3%, and a value of 92.2%. The hex is #2563EB. The hue of 221 puts it between cyan and blue, closer to blue — which is why it reads as a blue, not a cyan.

Third, the other direction: HSV 221, 84, 92 back to RGB is (38, 100, 235) — one step away from the original (37, 99, 235). The round trip is not exact, because the hue, saturation, and value were rounded to whole numbers first, and the rounding shifts the result by a step or two in 255.

Every example above uses the same rules, and you can check each one by hand. The arithmetic is short enough to do on paper, which is the point — a converter you can verify is a converter you can trust.

Why it matters, and who uses it

Designers use it for colour schemes. A scheme is usually built from one hue — say, 221 for a blue — and the saturation and value are varied to make lighter, darker, and paler versions. The converter gives the HSV values, and the designer varies them to build the scheme.

Developers use it for colour pickers. The picker in most design tools is an HSV picker: a hue slider, a saturation and value square, and a colour. The converter is the same arithmetic, shown as numbers instead of a picture.

Then there is the plain usefulness of an exact answer. Knowing that red is H 0, S 100, V 100 — and that a blue is H 221, S 84, V 92 — is a small piece of knowledge that keeps a colour scheme in step, and it is exact, not an estimate.

The answer is also easy to check, which is the point of showing the working. Pick a value you know — midnight, noon, half an hour — and the figures should match what you remember. If they do, the converter is working.

HSV Color Converter vs RGB to HEX converter

These two tools answer different questions. An RGB to HEX converter changes a colour between two ways of writing the same RGB values — (255, 0, 0) and #FF0000 are the same colour, written differently. This converter changes a colour between RGB and HSV — hue, saturation, and value — which is a different way of thinking about the colour, not just a different way of writing it. The difference is what is being converted: a notation, or a model. If the question is 'what is (255, 0, 0) as a hex code', the RGB to HEX converter is the tool; if the question is 'what is the hue of this blue', this is the tool.

If the question is 'what is the hue of this blue', use this converter. If the question is 'what is (255, 0, 0) as a hex code', use the RGB to HEX converter instead. Use this converter for hues and the RGB to HEX converter for hex codes. If the question is what a colour looks like, a color picker shows it on screen.

Both are the same kind of tool — a value in, a value out, worked out in your browser. A color picker shows any colour on screen and gives its hex code, which is the tool to use when you want to see the colour rather than convert it. And a HEX to RGB converter turns a hex code into RGB values, which is the tool to use when the colour is given as a hex code.

The two tools share the same idea: a value in, a value out, worked out in your browser. The difference is only in what is being converted, and in which direction the answer points.

Common mistakes

The first mistake is the hue circle. Hue is a circle, not a line: 0 and 360 are the same colour, and a hue of 359 is a red that is almost magenta. Treating hue as a line — and thinking 0 and 360 are opposites — is the most common error with HSV.

Second: saturation and value. Lowering the saturation washes a colour towards grey, and lowering the value darkens it towards black — and the two are not the same. A pale blue is low saturation and high value; a dark blue is high saturation and low value. Third: grey has no hue, and the converter gives 0 for it by convention.

Fourth: the round trip. Converting RGB to HSV and back does not always give the original RGB values, because the hue, saturation, and value are rounded to whole numbers — (37, 99, 235) comes back as (38, 100, 235). The difference is one step in 255, and it is invisible.

The mistakes above are the ones people actually make, and they are all small. A converter that shows its working lets you catch them before they matter, which is the whole reason for using one.

How to use this HSV color converter

Using it takes seconds. Pick the direction — RGB to HSV, or HSV to RGB — and enter the values. The default converts red (255, 0, 0) to H 0, S 100%, V 100%. The results update live: the hue, the saturation, the value, the RGB values, and the hex code. The results update live as you type.

The hue, saturation, and value are the main figures: 0, 100%, and 100% for the default. The RGB values and the hex code are the same colour in the screen model, so you can check the conversion against what you see on screen.

Everything runs in your browser, so nothing you enter leaves your device. One practical tip: build a colour scheme from one hue, and vary the saturation and value. A blue at H 221 with S 84 and V 92 is vivid; the same hue at S 40 and V 92 is pale, and at S 84 and V 50 is dark — three colours from one hue.

Everything runs in your browser, so nothing you enter leaves your device, and the answer is the same every time you enter the same value. There is nothing to save, nothing to sign up for, and nothing to wait for.

Frequently Asked Questions

H 0, S 100%, V 100%. Red is the simplest HSV colour: a hue of 0 degrees, fully saturated, and fully bright. The RGB values are (255, 0, 0) and the hex code is #FF0000.

Saturation is how vivid a colour is, from 0 (grey) to 100% (fully vivid). Value is how bright it is, from 0 (black) to 100% (full brightness). Lowering the saturation washes a colour towards grey; lowering the value darkens it towards black.

Yes. Hue is a circle, not a line: 0 and 360 are both red, and a hue of 359 is a red that is almost magenta. A colour picker that shows hue as a slider from 0 to 360 is showing a wheel, and the ends meet.

Not always exactly. The hue, saturation, and value are rounded to whole numbers, so a colour that starts as (37, 99, 235) comes back as (38, 100, 235) — a difference of one step in 255, which is invisible to the eye.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.