emonsteremonster tools

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

Explore this subject: Technology

Your privacy & preferences

Optional analytics helps us understand how emonster.tools is used. The site works normally without it. Your analytics choice is stored on this device so you can change it later; choosing not to allow analytics prevents optional measurement and removes Google Analytics cookies this site can access. Read Privacy Policy