100% In-Browser Privacy
Developer UtilitiesID: dev-color-converter

Color Converter & Picker (HEX, RGB, HSL, CMYK)

Interactive color picker and bidirectional converter between HEX, RGB, HSL, and CMYK formats.

Presets:
HEX Color#7C3AED
RGB Formatrgb(124, 58, 237)
HSL Formathsl(262, 83%, 58%)
CMYK (Print)cmyk(48%, 76%, 0%, 7%)

Technical Specifications & Standards

Calculates bidirectional conversions between standard sRGB color space (0-255), cylindrical HSL coordinates (hue 0-360°, saturation 0-100%, lightness 0-100%), and subtractive 4-color CMYK printing values.

Verified Technical Example

Converting brand indigo HEX color #4F46E5 to RGB, HSL, and CMYK

hex#4f46e5
• Extracts byte channels: Red = 0x4f (79), Green = 0x46 (70), Blue = 0xe5 (229)
• Calculates HSL: Max channel 229, Min channel 70 -> Hue = 243°, Saturation = 75%, Lightness = 59%
• Calculates subtractive CMYK: C = 66%, M = 69%, Y = 0%, K = 10%
Expected Output:RGB: rgb(79, 70, 229) | HSL: hsl(243, 75%, 59%) | CMYK: cmyk(66%, 69%, 0%, 10%)

Frequently Asked Questions

What is the difference between RGB and CMYK?

RGB is an additive color model designed for electronic displays (screens emit light). CMYK is a subtractive color model designed for physical ink printing (ink absorbs light).

Can I use shorthand 3-digit HEX codes (e.g., #fff)?

Yes. 3-character hex codes are automatically expanded to full 6-character hex equivalents (e.g. `#fff` becomes `#ffffff`).

Does this generate ready-to-use CSS declarations?

Yes, you can copy one-click CSS declarations for `hex`, `rgb(...)`, and `hsl(...)`.

Scope & Technical Limitations

  • CMYK conversion is an approximate mathematical translation into standardized sRGB space without ICC printing device profiles.