Color converter
Convert opaque colors between HEX, RGB, HSL, HSV and approximate CMYK, with a live swatch and color picker. Change the inputs to update the chart or diagram.
Your inputs
The editable example is illustrative. Enter your own dimensions, operating data, prices, and fees. Results update as you edit.
Calculations run in your browser. Inputs are not saved or sent to analytics.
How it works
- = 255 × (1 − ) × (1 − )
- = 1 − max(, , ) / 255
- : = (max(, , ) + min(, , )) / 510
- Worked example: #F00 → RGB(255, 0, 0) → HSL(0°, 100%, 50%)
Input and formula key
Your result
Complete the inputs to see your result.
Assumptions and limitations
Uses sRGB channels from 0 to 255, hue from 0° to 360°, and percentages from 0 to 100. HEX accepts 3 or 6 digits. Achromatic colors use hue 0°. HEX is rounded to the nearest 8-bit channel; other outputs retain up to 4 decimal places. CSS strings keep their required decimal point. CMYK uses a simple conversion without an ICC profile; printed results can differ.
Sources
- W3C — CSS Color Module Level 4 Sources reviewed: 2026-10-22
- W3C — device CMYK and color profiles Sources reviewed: 2026-10-22


