Notification
Go to Home All Tools Compare Glossary Blog Contact

HSV to RGB Converter

Paste a HSV colour and get the RGB value. Example: khaki is hsv(54, 42%, 94%) = rgb(240, 230, 139). Rounding is stated, and everything runs in your browser.

Client-Side (Private)
Example colour Khaki
HSV hsv(54, 42%, 94%)
RGB rgb(240, 230, 139)
Rounding Channels round half up
Live Preview
e.g. hsv(54, 42%, 94%)
Quick try:
Converted Result (RGB)

How to convert HSV to RGB by hand

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

  1. Turn S and V into fractions. Chroma C = V × S.
  2. X = C × (1 − |(H ÷ 60) mod 2 − 1|) and m = V − C.
  3. Choose the (R, G, B) pattern for the hue sector, exactly as in HSL, then add m, multiply by 255 and round.

Worked example: khaki (hsv(54, 42%, 94%))

Worked Hand Example
StepValue
C0.3948
X0.3553
m0.5452
R, G, B240, 230, 139
hsv(54, 42%, 94%) = rgb(240, 230, 139).

Common colours: HSV to RGB

CSS named colours converted both ways.

ColourHSVRGB
Red hsv(0, 100%, 100%) rgb(255, 0, 0)
Orange hsv(39, 100%, 100%) rgb(255, 166, 0)
Gold hsv(51, 100%, 100%) rgb(255, 217, 0)
Green hsv(120, 100%, 50%) rgb(0, 128, 0)
Teal hsv(180, 100%, 50%) rgb(0, 128, 128)
Blue hsv(240, 100%, 100%) rgb(0, 0, 255)
Indigo hsv(275, 100%, 51%) rgb(76, 0, 130)
Purple hsv(300, 100%, 50%) rgb(128, 0, 128)
Pink hsv(350, 25%, 100%) rgb(255, 191, 202)
Brown hsv(0, 75%, 65%) rgb(166, 41, 41)
Gray hsv(0, 0%, 50%) rgb(128, 128, 128)
Black hsv(0, 0%, 0%) rgb(0, 0, 0)
White hsv(0, 0%, 100%) rgb(255, 255, 255)

Is this colour readable?

Contrast of khaki (rgb(240, 230, 139)) against white and black (WCAG 2.x).

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

Related converters

Quickly jump to other conversions and color systems

Education

About this converter

01

Exact and Explained

Paste a HSV colour and get the RGB value. Example: khaki is hsv(54, 42%, 94%) = rgb(240, 230, 139). 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.

khaki is rgb(240, 230, 139) (in HSV: hsv(54, 42%, 94%)). These are CSS named colour values.

1. Turn S and V into fractions. Chroma C = V × S. 2. X = C × (1 − |(H ÷ 60) mod 2 − 1|) and m = V − C. 3. Choose the (R, G, B) pattern for the hue sector, exactly as in HSL, then add m, multiply by 255 and round.

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