CSV to HSV Converter
Convert CSV color data (RGB values) to HSV color space. Upload CSV files or paste RGB data for instant batch HSV conversion with preview.
About
Color space conversion from RGB to HSV is a non-trivial geometric remapping. RGB defines color as additive light channels (R, G, B each in 0 - 255), while HSV separates chromatic information into Hue (H, 0 - 360°), Saturation (S, 0 - 100%), and Value (V, 0 - 100%). Feeding malformed CSV into a pipeline without validation silently corrupts palettes. Values outside the 0 - 255 range or swapped column order produce wrong hues. This tool parses CSV with full RFC 4180 compliance, validates every triplet, flags errors per row, and outputs clean HSV data ready for design systems or shader uniforms.
The conversion assumes sRGB input with no gamma pre-correction. Results are rounded to two decimal places for H and one decimal for S and V. Achromatic colors (where R = G = B) return H = 0° by convention, not undefined. Pro tip: if your CSV uses hex strings instead of decimal channels, pre-convert to integer triplets first.
Formulas
The RGB to HSV conversion operates on normalized channel values. Given input R, G, B ∈ [0, 255], first compute normalized values R′, G′, B′ by dividing each by 255.
Hue calculation is piecewise, depending on which channel is dominant:
Saturation and Value:
Where H ∈ [0, 360)°, S ∈ [0, 100]%, V ∈ [0, 100]%. Δ is the chroma (color intensity). When Δ = 0, the color is achromatic (gray) and H is undefined, conventionally set to 0.
Reference Data
| Color Name | R | G | B | H (°) | S (%) | V (%) |
|---|---|---|---|---|---|---|
| Red | 255 | 0 | 0 | 0 | 100 | 100 |
| Green | 0 | 128 | 0 | 120 | 100 | 50.2 |
| Blue | 0 | 0 | 255 | 240 | 100 | 100 |
| Yellow | 255 | 255 | 0 | 60 | 100 | 100 |
| Cyan | 0 | 255 | 255 | 180 | 100 | 100 |
| Magenta | 255 | 0 | 255 | 300 | 100 | 100 |
| White | 255 | 255 | 255 | 0 | 0 | 100 |
| Black | 0 | 0 | 0 | 0 | 0 | 0 |
| Orange | 255 | 165 | 0 | 38.82 | 100 | 100 |
| Deep Pink | 255 | 20 | 147 | 327.57 | 92.2 | 100 |
| Lime Green | 50 | 205 | 50 | 120 | 75.6 | 80.4 |
| Steel Blue | 70 | 130 | 180 | 207.27 | 61.1 | 70.6 |
| Gold | 255 | 215 | 0 | 50.59 | 100 | 100 |
| Coral | 255 | 127 | 80 | 16.11 | 68.6 | 100 |
| Slate Gray | 112 | 128 | 144 | 210 | 22.2 | 56.5 |
| Dark Violet | 148 | 0 | 211 | 282.09 | 100 | 82.7 |
| Turquoise | 64 | 224 | 208 | 174 | 71.4 | 87.8 |
| Salmon | 250 | 128 | 114 | 6.18 | 54.4 | 98 |
| Medium Gray | 128 | 128 | 128 | 0 | 0 | 50.2 |
| Indigo | 75 | 0 | 130 | 274.62 | 100 | 51 |