HSV to RGB Converter

Convert HSV color values to rgb(r, g, b) without doing the calculations by hand. This converter is useful when a color picker or design tool shows colors in HSV, but your CSS, canvas code, or components expect RGB.

Type a color in HSV format and the matching RGB triplet will appear immediately. You can change hue, saturation, and value interactively and then copy the resulting RGB value into your styles or scripts.

Below the converter you will find a short overview of HSV and RGB, a readable explanation of the conversion formula, a step-by-step example, a reference table, and a FAQ section that covers typical questions.

What Is HSV

HSV stands for Hue, Saturation, and Value. It describes a color by its basic hue on the color wheel, how intense that hue is, and how bright or dark the result looks compared to black.

Hue is measured in degrees from 0 to 360. Saturation and value are written as percentages from 0% to 100%. Low saturation pushes a color toward gray, while low value makes it darker and closer to black.

Because HSV separates hue, intensity, and brightness, it is a popular choice in color pickers and digital painting tools where users explore variations of a base color.

What Is RGB

RGB is a color model based on three light channels: red, green, and blue. Each channel is a number from 0 to 255. A value of 0 means no contribution from that channel and 255 means maximum intensity.

When the three channels are combined, they form the pixels on screens. For example, rgb(255, 255, 255) is white, rgb(0, 0, 0) is black, and rgb(255, 165, 0) is a bright orange.

RGB is the native representation for many graphics APIs and image formats, which is why converting HSV to RGB is a common step in frontend development and visual tools.

HSV to RGB Formula

hsv(h, s, v) -> rgb(r, g, b)

Given:
  h in [0, 360)
  s in [0, 100]
  v in [0, 100]

1) Normalize saturation and value:
   s' = s / 100
   v' = v / 100

2) Compute chroma:
   c = v' * s'

3) Find a helper value:
   x = c * (1 - |((h / 60) mod 2) - 1|)

4) Compute a temporary rgb triple in [0, c]:
   if      0 <= h < 60   then (r1, g1, b1) = (c, x, 0)
   else if 60 <= h < 120 then (r1, g1, b1) = (x, c, 0)
   else if 120 <= h < 180 then (r1, g1, b1) = (0, c, x)
   else if 180 <= h < 240 then (r1, g1, b1) = (0, x, c)
   else if 240 <= h < 300 then (r1, g1, b1) = (x, 0, c)
   else                    (r1, g1, b1) = (c, 0, x)

5) Add the lightness offset:
   m  = v' - c
   r' = r1 + m
   g' = g1 + m
   b' = b1 + m

6) Convert to final RGB:
   r = round(r' * 255)
   g = round(g' * 255)
   b = round(b' * 255)

The formula first builds a color with the desired saturation and value, then selects a region of the color wheel based on the hue, and finally shifts the channels so that the overall brightness matches the target value.

Example for hsv(196, 59%, 76%)
1) Normalize s and v to the [0, 1] range
2) Compute c, x, and m
3) Choose the temporary triple for the hue sector
4) Add m to each channel and scale to 0-255
5) Rounded result:
   rgb(79, 163, 194)

How HSV to RGB Conversion Works Step by Step

At a high level, converting from HSV to RGB means deciding how far a color is from gray, picking a direction on the color wheel, and then translating that information into three numeric channels.

hsv(210, 57%, 24%)
-> rgb(r, g, b)

Here is an outline of the process for hsv(210, 57%, 24%).

  • Step 1 - Normalize and compute chroma

    Turn saturation and value into fractions and use them to calculate chroma. Chroma describes how much color is present compared to a pure gray with the same value.

    s' = 57 / 100
    v' = 24 / 100
    c = v' * s'
  • Step 2 - Choose the hue sector and base triple

    Divide the hue by 60 to find the region of the color wheel. For each region there is a different temporary triple such as (c, x, 0) or (0, x, c) that sets up how red, green, and blue relate to each other before the final shift.

    h = 210
    h / 60 is between 3 and 4
    temporary triple uses (0, x, c)
  • Step 3 - Add the offset and scale to RGB

    Add the offset m so that the maximum channel matches the requested value, then scale the result to the 0 to 255 range and round to integers.

    rgb(26, 43, 60)

You can apply the same pattern to any valid HSV color, which is why it is convenient to use a converter instead of repeating these calculations by hand.

Where HSV and RGB Are Useful

HSV and RGB describe the same colors but highlight different aspects. HSV is built around hue, saturation, and value, while RGB works directly with three numeric light channels.

Typical Uses for HSV

  • Interactive color pickers: sliders for hue, saturation, and value feel natural when users explore color options.
  • Fine grained adjustments: it is easy to make a color brighter or more vivid by changing one or two parameters instead of three channels.
  • Visual experimentation: artists and designers often prefer HSV when trying out variations of a base hue.

Typical Uses for RGB

  • Low level rendering: many graphics APIs and image formats use RGB values directly.
  • CSS and web layouts: functions like rgb() and rgba() are widely supported and easy to integrate into stylesheets.
  • Interop with other formats: HEX and HSL conversions usually go through RGB under the hood.

Summary

Use HSV when you are exploring and adjusting colors interactively, and convert to RGB when you are ready to store, render, or animate those colors in code.

Practical Tips for Working With HSV and RGB

You do not have to choose only one color model for an entire project. HSV and RGB can complement each other when you plan a workflow up front.

Use HSV for Editing, RGB for Storage

  • Experiment in HSV: adjust hue, saturation, and value until the color feels right, then convert to RGB for your final tokens.
  • Keep RGB in code: RGB values are easy to manipulate programmatically and work well with existing libraries and formats.

Combine With Other Color Formats

  • Move through RGB when converting: even if you mostly think in HSL or HEX, conversions commonly use RGB as a bridge between models.
  • Use RGBA for transparency: keep the base color in RGB and add an alpha channel only where you need overlays or soft edges.

Keep the System Consistent

  • Define clear rules: decide where HSV is used (for example, in pickers or editing tools) and where RGB is the final format.
  • Rely on converters: use helpers instead of manual math so that themes and palettes stay accurate across the codebase.

With a deliberate split between HSV for editing and RGB for implementation, you get both intuitive controls and predictable rendering.

HSV to RGB Conversion Table

The table below shows several well known colors written in both HSV and RGB forms. Values are rounded for readability, so use the converter at the top of the page when you need exact numbers.

HSV to RGB Reference Table
DescriptionHSVRGB
Whitehsv(0, 0%, 100%)rgb(255, 255, 255)
Blackhsv(0, 0%, 0%)rgb(0, 0, 0)
Redhsv(0, 100%, 100%)rgb(255, 0, 0)
Greenhsv(120, 100%, 100%)rgb(0, 255, 0)
Bluehsv(240, 100%, 100%)rgb(0, 0, 255)
Yellowhsv(60, 100%, 100%)rgb(255, 255, 0)
Cyanhsv(180, 100%, 100%)rgb(0, 255, 255)
Magentahsv(300, 100%, 100%)rgb(255, 0, 255)
Gray 1hsv(0, 0%, 7%)rgb(17, 17, 17)
Gray 2hsv(0, 0%, 20%)rgb(51, 51, 51)
Gray 3hsv(0, 0%, 33%)rgb(85, 85, 85)
Gray 4hsv(0, 0%, 47%)rgb(119, 119, 119)
Gray 5hsv(0, 0%, 60%)rgb(153, 153, 153)
Gray 6hsv(0, 0%, 80%)rgb(204, 204, 204)
Orangehsv(39, 100%, 100%)rgb(255, 165, 0)
Purplehsv(300, 100%, 50%)rgb(128, 0, 128)
Tealhsv(180, 100%, 50%)rgb(0, 128, 128)

For any other HSV combination you can rely on the converter at the top of the page, which implements the standard HSV to RGB algorithm for valid inputs.

FAQ: HSV to RGB

  • Why convert HSV to RGB at all

    Many tools represent colors in HSV for interactive editing, but rendering engines and CSS often require RGB. Conversion lets you keep an intuitive editing model while still outputting the formats your stack expects.

  • What ranges do H, S, and V use

    Hue is measured in degrees from 0 to 360. Saturation and value are percentages from 0 percent to 100 percent. A typical CSS and graphics representation uses this range even if the underlying math works with fractions.

  • Does converting to RGB change the color

    No. Both HSV and RGB describe the same color space. A correctly converted RGB triplet will look identical to the original HSV value when displayed.

  • Can I go back from RGB to HSV

    Yes. As long as the values stay in valid ranges, you can move between HSV and RGB without losing information, apart from minor rounding differences.

  • Is HSV better than RGB for all cases

    Not necessarily. HSV is great for editing and pickers, while RGB is better for low level work, storage, and many APIs. It is normal to use both models side by side with clear conversion rules.

Related Converters: