Convert color codes between HEX, RGB, HSL, and CMYK formats instantly. Visual color picker with live preview and one-click copy for each format. Free, no signup.
Use the color picker to visually choose a color, or type a known HEX code (e.g., #3498db) directly into the HEX field.
You can also type an RGB value (e.g., rgb(52, 152, 219)) into the RGB field — all other values update automatically.
The HEX, RGB, HSL, and CMYK values for your color update instantly. The color preview bar shows the selected color.
Click Copy HEX, Copy RGB, or Copy HSL to copy the desired format to your clipboard.
For most web development, HEX codes are the standard. For dynamic color manipulation in JavaScript, HSL is often preferred since adjusting lightness or saturation is straightforward. RGB with an alpha channel (RGBA) is used for transparency. Modern CSS also supports the oklch() and color() functions for broader color gamuts.