Color Conversion Tools
RGB to HSV
Convert red, green and blue channels to hue, saturation and value. A quick way to see what kind of color a pixel or chart value really is, and to plan lighter or more muted variants.
Edit a channel and see the color result immediately.
Enter RGB
RGB channels are whole numbers from 0 to 255.
HSV result
The conversion runs in your browser.
All formats
- HEX
#336699- RGB
rgb(51, 102, 153)- HSL
hsl(210, 50%, 40%)- HSV
hsv(210°, 66.7%, 60%)- CMYK
cmyk(66.7%, 33.3%, 0%, 40%)- OKLCH
oklch(49.9% 0.099 250.4)- CSS
≈ steelblue
Tints and shades
Text contrast (WCAG)
Normal text needs 4.5:1 for AA and 7:1 for AAA; large text needs 3:1.
How it was calculated
R′ = 51 ÷ 255 = 0.2, G′ = 0.4, B′ = 0.6max = 0.6, min = 0.2, Δ = 0.4H = 60 × ((R′ − G′) ÷ Δ + 4) = 210°S = Δ ÷ max = 66.7%, V = max = 60%
Common colors in RGB and HSV
Choose a color to load it into the converter.
| Color | RGB | HSV |
|---|---|---|
rgb(0, 0, 0) | hsv(0°, 0%, 0%) | |
rgb(255, 255, 255) | hsv(0°, 0%, 100%) | |
rgb(255, 0, 0) | hsv(0°, 100%, 100%) | |
rgb(0, 255, 0) | hsv(120°, 100%, 100%) | |
rgb(0, 0, 255) | hsv(240°, 100%, 100%) | |
rgb(255, 255, 0) | hsv(60°, 100%, 100%) | |
rgb(0, 255, 255) | hsv(180°, 100%, 100%) | |
rgb(255, 0, 255) | hsv(300°, 100%, 100%) | |
rgb(128, 128, 128) | hsv(0°, 0%, 50.2%) | |
rgb(128, 0, 0) | hsv(0°, 100%, 50.2%) | |
rgb(0, 128, 0) | hsv(120°, 100%, 50.2%) | |
rgb(0, 0, 128) | hsv(240°, 100%, 50.2%) | |
rgb(255, 165, 0) | hsv(38.8°, 100%, 100%) | |
rgb(70, 130, 180) | hsv(207.3°, 61.1%, 70.6%) | |
rgb(102, 51, 153) | hsv(270°, 66.7%, 60%) | |
rgb(255, 99, 71) | hsv(9.1°, 72.2%, 100%) |
How to use
- Enter the three channels as whole numbers from 0 to 255.
- Read hue in degrees and saturation and value as percentages, and follow the max, min and delta steps in the calculation panel.
- Adjust saturation or value in your tool, or use the tints and shades strip to preview related colors.
Examples
Light coral
Red is the largest channel and green equals blue, so the hue is exactly 0°. The bright red channel gives a high value, and the gap to the other channels gives moderate saturation.
rgb(240, 128, 128)
hsv(0°, 46.7%, 94.1%)
A neutral gray
Equal channels have no hue and no saturation. Only value changes, here 128 ÷ 255 = 50.2%.
rgb(128, 128, 128)
hsv(0°, 0%, 50.2%)
Why convert RGB to HSV
RGB numbers come out of image editors, canvases, sensors and chart libraries. They are exact but hard to interpret: is rgb(240, 128, 128) a red, a pink or an orange? Converting to HSV answers that instantly:
- Classifying colors in images. Grouping pixels by hue is a common first step in color analysis and simple computer-vision tasks.
- Building color variants. Keep hue fixed and change value for shades, or lower saturation for muted UI backgrounds.
- Checking palette consistency. Similar saturation and value across a chart palette make every series feel equally important.
How the conversion works
Divide each channel by 255. For rgb(240, 128, 128) that is 0.941, 0.502 and 0.502.
- max = 0.941, min = 0.502, Δ = max − min = 0.439
- Value = max = 94.1%
- Saturation = Δ ÷ max = 46.7%
- Hue uses the channel that is largest. Red leads, so H = 60 × ((G′ − B′) ÷ Δ mod 6). Green and blue are equal, so the hue is 0°.
With your own numbers, the calculation panel shows which hue formula applied, which is the step people most often get wrong when doing this by hand.
Reading the result
Hue is an angle: 0° red, 120° green, 240° blue, with the secondary colors halfway between. Saturation near 0% is gray. Value near 0% is black, whatever the other numbers say.
Convert back with HSV to RGB, or get a print estimate from the same channels with RGB to CMYK.
Frequently asked questions
Why would I use HSV instead of RGB?
RGB tells you how much of each light is mixed; HSV tells you which color it is, how intense it is and how bright it is. Questions like 'make it less saturated' are one number in HSV and three in RGB.
Is HSV the same as HSB?
Yes. HSB (hue, saturation, brightness) is the name Adobe and Apple use. The values match this converter.
Why is the hue 0° for grays?
When all channels are equal, no hue dominates. The formula defines that case as 0° with 0% saturation.
Can I feed the result into CSS?
Not directly; CSS has no hsv() function. Use the HSL or OKLCH value from the All formats panel, which describes the same color in a CSS-ready form.
Does the converter round values?
Yes, to one decimal place. Converting back can shift a channel by one, which is invisible in practice.