RGB to HSV color conversion
Convert RGB (0–255) to HSV/HSB (hue °, saturation %, value %). Standard formulas, examples, and color chart. Runs locally in your browser. Try it free.
Enter values to convert.
Formulas
Core equations used by this converter.
How to use
Choose RGB → HSV or HSV → RGB
Use the tabs in the converter to switch direction.
Enter RGB or HSV values
Fill in the active fields for the selected direction.
Convert and read the result
Use Convert or let the result update automatically.
Example conversions
Common values with formula and result.
rgb(255, 0, 0) → HSV
rgb(255, 0, 0) → HSV
rgb(0, 0, 255) → HSV
rgb(0, 0, 255) → HSV
rgb(128, 0, 0) → HSV (maroon)
rgb(128, 0, 0) → HSV (maroon)
RGB to HSV color conversion specification
Version 1.1.0 · Engine tested
- Engine tested 3 published cases
- Named expert review Not performed
- Calculation version 1.1.0
- Definition
- **RGB** — red, green, blue **0–255**.
- What it calculates
- Convert RGB (0–255) to HSV/HSB (hue °, saturation %, value %). Standard formulas, examples, and color chart.
- Inputs
- Values required by the selected conversion mode
- Outputs
- Converted result in the target unit or format
- Formula
R' = R / 255 · G' = G / 255 · B' = B / 255- RGB to HSV color table
Color name Hex RGB HSV Black #000000 (0,0,0) (0°, 0%, 0%) White #FFFFFF (255,255,255) (0°, 0%, 100%) Red #FF0000 (255,0,0) (0°, 100%, 100%) Lime #00FF00 (0,255,0) (120°, 100%, 100%) Blue #0000FF (0,0,255) (240°, 100%, 100%) Yellow #FFFF00 (255,255,0) (60°, 100%, 100%) Cyan #00FFFF (0,255,255) (180°, 100%, 100%) Magenta #FF00FF (255,0,255) (300°, 100%, 100%) Silver #C0C0C0 (192,192,192) (0°, 0%, 75%) Gray #808080 (128,128,128) (0°, 0%, 50%) Maroon #800000 (128,0,0) (0°, 100%, 50%) Olive #808000 (128,128,0) (60°, 100%, 50%) - Assumptions
- Conversion runs locally in the browser; values are not uploaded.
- Uses the formulas documented on this page.
- Units
- R'
- G'
- B'
- Boundary conditions
- Empty or invalid input yields no valid result.
- Out-of-range values may be rejected by the tool runtime.
- Example
- rgb(255, 0, 0) → HSV → hsv(0°, 100%, 100%)
- Validation cases
- rgb(255, 0, 0) → HSV → hsv(0°, 100%, 100%)
- rgb(0, 0, 255) → HSV → hsv(240°, 100%, 100%)
- rgb(128, 0, 0) → HSV (maroon) → hsv(0°, 100%, 50%)
- Sources
- CalculatorX converter runtime
- Standard unit / encoding definitions where applicable
- Calculation version
- 1.1.0
Background
Interpretation and common distinctions.
Use the converter tabs to switch direction when available. Results for RGB to HSV color conversion update locally in your browser.
Related tools
Frequently asked questions
Key distinctions behind the conversion.
How do you convert using RGB to HSV color conversion?
Use R' = R / 255. Example: rgb(255, 0, 0) → HSV → hsv(0°, 100%, 100%).
Can I switch direction?
Open the related reverse converter listed under Related tools.
Does this run online or locally?
Calculation runs locally in your browser. Values are not uploaded.
How precise are the results?
Results follow the formulas on this page. Round to the precision your use case needs.