Color Code Converter

Convert HEX, RGB, RGBA, HSL, HSV color codes — with visual preview

Free Client-Side No Login No Storage
Loading tool...

How to Use the Color Code Converter

  1. Use the color picker swatch or type a hex code directly.
  2. All formats (HEX, RGB, RGBA, HSL, HSV) update live.
  3. Click any Copy button to copy a format.
  4. Your last 8 colors are saved as swatches for quick access.

What is a Color Code Converter?

A color code converter translates colours between different notation systems used in web development and design: HEX (#ff5733), RGB (rgb(255,87,51)), HSL (hsl(11,100%,60%)), RGBA, and HSV. Each format represents the same colour differently — HEX and RGB for web/CSS, HSL for human-intuitive adjustments.

Common Uses

  • Converting design tool colours (Figma outputs HSL, CSS uses HEX)
  • Adjusting colour lightness/saturation in HSL format
  • Converting brand colours between formats for consistency
  • Debugging CSS colour values that aren't rendering as expected

Frequently Asked Questions

What is the difference between RGB and HSL?

RGB (Red, Green, Blue) defines colour by mixing light primaries. HSL (Hue, Saturation, Lightness) is more intuitive for humans — hue is the colour type (0–360°), saturation is intensity, lightness is brightness. HSL makes it easy to create colour variants (e.g., change only lightness for hover states).

What does the alpha channel mean in RGBA/HSLA?

Alpha represents opacity from 0 (fully transparent) to 1 (fully opaque). rgba(255,0,0,0.5) is a 50 % transparent red.

How do I convert a HEX colour to RGB?

Split the 6-digit hex into 3 pairs (RR, GG, BB) and convert each from hexadecimal to decimal. For example, #FF5733 → R=255, G=87, B=51 → rgb(255, 87, 51). CipherKit does this conversion instantly.