Color Converter
Paste or pick any color — get instant conversions to all formats. No dropdowns, no steps.
Supports: #HEX, rgb(), rgba(), hsl(), hsla(), hsv(), cmyk(), hwb(), CSS color names (e.g. coral)
coral)Color Format Reference
Every major design tool, browser, and programming language has a preferred color format. Here's when to use each one.
black to rebeccapurple. Only works for exact matches — most custom colors won't have a name.How to Convert Between Color Formats
HEX to RGB
Split the 6-digit hex into three 2-character pairs and convert each from base-16 to base-10. For example, #FF5733: FF → 255, 57 → 87, 33 → 51, giving rgb(255, 87, 51).
RGB to HSL
Normalize each channel to 0–1, find the max and min values, then compute hue from which channel is dominant, saturation from the range relative to lightness, and lightness as the average of max and min.
RGB to CMYK
Normalize channels to 0–1. Key (K) = 1 − max(R, G, B). Then C = (1−R−K)/(1−K), M = (1−G−K)/(1−K), Y = (1−B−K)/(1−K). Note: screen-to-print CMYK is approximate — actual print values depend on paper and ink profiles.
HSV vs HSL
Both use hue (0–360°) and saturation, but they differ in how they represent brightness. In HSL, 50% lightness is the pure color — you add white (above 50%) or black (below 50%). In HSV, 100% value with 100% saturation is the pure color, and reducing value darkens it. HSV is what Photoshop and Figma use; HSL is what CSS uses.
Supported Input Formats
This converter auto-detects any of the following input formats as you type:
#RGB— 3-digit hex#RRGGBB— 6-digit hex#RRGGBBAA— 8-digit hexrgb(r, g, b)rgba(r, g, b, a)hsl(h, s%, l%)hsla(h, s%, l%, a)hsv(h, s%, v%)cmyk(c%, m%, y%, k%)hwb(h w% b%)- CSS color names (e.g.
coral) - Decimal integer (e.g.
16744448)