Color Format Converter

100% Client-Side Private

Convert colors seamlessly between HEX, RGB, HSL, and HSV with live preview

Popular Palette Presets
Source Color
Accepts HEX (#...), RGB, or HSL
#3B82F6
Luminance: 0.2355
Use White Text
Complementary Inverted Color
#C47D09
Converted Color Formats
HEX

#3B82F6

HEX8 (Alpha)

#3B82F6FF

RGB

rgb(59, 130, 246)

RGBA

rgba(59, 130, 246, 1.00)

HSL

hsl(217, 91%, 60%)

HSLA

hsla(217, 91%, 60%, 1.00)

HSV / HSB

hsv(217, 76%, 96%)

CMYK (Print)

cmyk(76%, 47%, 0%, 4%)

How to convert color models

  1. 1Input your color code in any format (HEX `#4f46e5`, RGB `rgb(79, 70, 229)`, or HSL).
  2. 2Instantly view the synchronized conversions across all other color models.
  3. 3Click the copy button on your target syntax.

CSS Color Standards

Different design systems rely on different color models: HEX for compact configs, RGB for opacity blending, and HSL for intuitive tinting.

Architecture & Privacy

  • Full Spectrum Color Space conversion: Matrix translation across sRGB, HSL cylindrical, HSV conical, and CMYK subtractive.
  • WCAG 2.1 Perceived Luminance engine: Computes relative luminance according to the sRGB gamma curve.
  • Instant Bi-directional Parsing: Flexibly parses #hex, rgb(r,g,b), and hsl(h,s%,l%) formats automatically.
  • 100% Client-Side calculation: Zero server roundtrips, instant zero-latency feedback.

Frequently Asked Questions

Related Developer Utilities