Notification
Go to Home All Tools Compare Glossary Blog Contact

RGB to HSV Converter

Paste a RGB colour and get the HSV value. Example: teal is rgb(0, 128, 128) = hsv(180, 100%, 50%). Rounding is stated, and everything runs in your browser.

Client-Side (Private)
Example colour Teal
RGB rgb(0, 128, 128)
HSV hsv(180, 100%, 50%)
Rounding Channels round half up
Live Preview
e.g. rgb(0, 128, 128)
Quick try:
Converted Result (HSV)

How to convert RGB to HSV by hand

Step-by-step mathematical method you can verify by hand

  1. Divide each channel by 255.
  2. V is the largest of the three. Δ = max − min.
  3. S = Δ ÷ max (0 when max is 0). Hue is calculated exactly as for HSL.

Worked example: teal (rgb(0, 128, 128))

Worked Hand Example
StepValue
V (max)50.2%
S = Δ ÷ max100%
H180°
Rounded resulthsv(180, 100%, 50%)
rgb(0, 128, 128) = hsv(180, 100%, 50%) (teal).

Common colours: RGB to HSV

CSS named colours converted both ways.

ColourRGBHSV
Red rgb(255, 0, 0) hsv(0, 100%, 100%)
Orange rgb(255, 165, 0) hsv(39, 100%, 100%)
Gold rgb(255, 215, 0) hsv(51, 100%, 100%)
Green rgb(0, 128, 0) hsv(120, 100%, 50%)
Teal rgb(0, 128, 128) hsv(180, 100%, 50%)
Blue rgb(0, 0, 255) hsv(240, 100%, 100%)
Indigo rgb(75, 0, 130) hsv(275, 100%, 51%)
Purple rgb(128, 0, 128) hsv(300, 100%, 50%)
Pink rgb(255, 192, 203) hsv(350, 25%, 100%)
Brown rgb(165, 42, 42) hsv(0, 75%, 65%)
Gray rgb(128, 128, 128) hsv(0, 0%, 50%)
Black rgb(0, 0, 0) hsv(0, 0%, 0%)
White rgb(255, 255, 255) hsv(0, 0%, 100%)

Is this colour readable?

Contrast of teal (hsv(180, 100%, 50%)) against white and black (WCAG 2.x).

Text colourContrast ratioNormal text AA (4.5)Large text AA (3)
White 4.77:1 Pass Pass
Black 4.4:1 Fail Pass

Related converters

Quickly jump to other conversions and color systems

Education

About this converter

01

Exact and Explained

Paste a RGB colour and get the HSV value. Example: teal is rgb(0, 128, 128) = hsv(180, 100%, 50%). Rounding is stated, and everything runs in your browser. The worked example and tables on this page are calculated from the numbers themselves, so you can check the result by hand.

02

Privacy

The conversion runs in your browser. Nothing you type is sent to a server.

Good to know

Questions, answered

Quick answers about how this tool works.

teal is hsv(180, 100%, 50%) (in RGB: rgb(0, 128, 128)). These are CSS named colour values.

1. Divide each channel by 255. 2. V is the largest of the three. Δ = max − min. 3. S = Δ ÷ max (0 when max is 0). Hue is calculated exactly as for HSL.

The maths is exact, but HSL and HSV values are rounded to whole numbers, so converting back can be off by 1 in a channel. Use decimals in the tool for a lossless round trip.

All of hex, rgb(), hsl(), and the newer oklch() work in current browsers. Hex is the shortest, hsl() is the easiest to adjust by hand (change only the lightness to make a shade), and oklch() gives the most even lightness steps.

Was this tool helpful?

★ 5.0 • 2 user ratings

Tap a star to rate instantly

What do you need to work out next?

Search 278+ free tools by name, or pick a category below. Every one runs instantly in your browser — no signup, nothing to install.

More Developer Tools
AI ADVISOR & COACH

Ask AI Advisor

Ask AI