RGB to HSV Converter

Convert RGB color values to HSV (hue, saturation, value). Free, instant, and private.

Independently verified for accuracy

Calculator by Toolsloft ↗
Enter an r, g, b triple to convert

Convert an RGB color to its HSV values, the hue, saturation, and value used by most color pickers. Enter the red, green, and blue channels and read the matching hsv() string. HSV makes it easy to keep a hue while adjusting how bright or vivid a color is.

How this is calculated

The channels are scaled to 0 to 1. Value is the largest channel, saturation is the spread between the largest and smallest channel divided by value, and hue comes from which channel is the maximum. This is the standard RGB to HSV formula used in graphics software.

How to use

  1. Enter the red, green, and blue values, for example 51, 102, 204.
  2. The hsv() result appears below as you type.
  3. Copy the HSV values into your design tool or code.

Examples

  • 51, 102, 204: hsv(220, 75%, 80%)
  • 255, 0, 0: hsv(0, 100%, 100%)

FAQ

What is the difference between HSV and HSL?
Both start from hue and saturation, but HSV uses value (how bright the lightest channel is) while HSL uses lightness (the midpoint between the lightest and darkest channels). The same color has different saturation numbers in each model.
What range do the outputs use?
Hue runs from 0 to 359 degrees. Saturation and value are shown as percentages from 0 to 100.

Embed this calculator

Add this free calculator to your own site. Copy the code and paste it where you want it to appear.