ColorToolkits
Format Converter

RGB to HSV Converter

Convert decimal RGB channels into HSV/HSB coordinates used by graphics pickers and shader pipelines.

Converted (HSV / HSB)
hsv(173.4 89.1% 72.2%)
#14B8A6
Try presets:

How to Use This Tool

  1. Enter or paste your RGB value or choose one of the curated preset swatches.
  2. Copy the formatted HSV / HSB value directly, or inspect the secondary HEX, RGB, HSL, and OKLCH chips below.
  3. Click into Tailwind Scale Generator or Contrast Checker to validate accessibility on the converted shade.

Key Features

  • Bidirectional parsing supporting CSS Color Level 4 syntax cleanly
  • Normalize R, G, B to [0, 1]; V = max(R, G, B), S = V === 0 ? 0 : (V - min)/V, and Hue measures dominant channel sector position.
  • Instant clipboard feedback with live OKLCH and Display-P3 gamut safety
  • Zero server round-trips—every calculation executes immediately in browser memory

Extracting Peak Channel Value and Hue Angle

Normalize R, G, B to [0, 1]; V = max(R, G, B), S = V === 0 ? 0 : (V - min)/V, and Hue measures dominant channel sector position.

Reference Snippet (JavaScript)

const v = Math.max(r, g, b) / 255; // Brightness/Value
const d = (Math.max(r, g, b) - Math.min(r, g, b)) / 255;

Frequently Asked Questions

More Color Tools

View all tools →