CalquioCalquio

Search

Search for calculators and tools

Color Converter

Convert colors between HEX, RGB, HSL, HSV, and CMYK formats. Generate color palettes.

Invalid color format. Try HEX (#ff0000), RGB (rgb(255,0,0)), or HSL.

You May Also Like

What Are Color Spaces?

A color space is a way to describe colors using numbers. Just like you can describe a location with GPS coordinates, you can describe any color with the right numbers.

Different color spaces exist because different devices and use cases need different approaches:

  • Your monitor uses RGB (Red, Green, Blue light)
  • Printers use CMYK (Cyan, Magenta, Yellow, Black ink)
  • Designers often prefer HSL (Hue, Saturation, Lightness)
  • Web developers use HEX codes (#FF5733)

Understanding color conversion helps you maintain consistent colors across screens, print, and different software.

RGB: The Language of Screens

RGB mixes red, green, and blue light to create colors. Each channel ranges from 0-255.

Red:   (255, 0, 0)     → Pure red
Green: (0, 255, 0)     → Pure green
Blue:  (0, 0, 255)     → Pure blue
White: (255, 255, 255) → All colors at max
Black: (0, 0, 0)       → No light

Why 255? Each channel uses 8 bits (2^8 = 256 values, from 0-255). This gives us 16.7 million possible colors (256 × 256 × 256)!

Quick tip: Equal RGB values create grays. (128, 128, 128) is medium gray.

HEX: RGB in Disguise

HEX codes are just RGB values written in hexadecimal (base-16).

#FF5733
 ││││││
 ││││└┴── Blue: 33 (hex) = 51 (decimal)
 ││└┴──── Green: 57 (hex) = 87 (decimal)
 └┴────── Red: FF (hex) = 255 (decimal)

Shorthand notation:

  • #FF5733 → Full form
  • #F53 → Shorthand (each digit doubled: #FF5533)

Common HEX codes:

ColorHEXRGB
White#FFFFFF(255, 255, 255)
Black#000000(0, 0, 0)
Red#FF0000(255, 0, 0)
Green#00FF00(0, 255, 0)
Blue#0000FF(0, 0, 255)

HSL: The Designer's Choice

HSL describes color in a more intuitive way:

  • Hue: The color itself (0-360° on a color wheel)
  • Saturation: How vivid the color is (0-100%)
  • Lightness: How bright the color is (0-100%)
Red:    hsl(0, 100%, 50%)
Orange: hsl(30, 100%, 50%)
Yellow: hsl(60, 100%, 50%)
Green:  hsl(120, 100%, 50%)
Blue:   hsl(240, 100%, 50%)
Purple: hsl(300, 100%, 50%)

Why designers love HSL:

  • Want a lighter shade? Just increase Lightness
  • Want a muted version? Decrease Saturation
  • Want a different color? Rotate the Hue

Color Harmony Tips

🎨 Using the Color Wheel:

HarmonyDescriptionHue Difference
ComplementaryOpposite colors180°
AnalogousAdjacent colors30° apart
TriadicThree equidistant120° apart
Split-complementaryBase + two adjacent to complement150° & 210°

Practical Examples:

Base color: Blue (hsl 240)

Complementary:       Orange (hsl 60)
Analogous:           Purple (270), Cyan (210)
Triadic:             Red-orange (0), Yellow-green (120)

Accessibility reminder: Always check color contrast ratios! Text should have at least 4.5:1 contrast against its background for WCAG AA compliance.

CMYK: For Print

CMYK uses subtractive color mixing (ink absorbs light):

  • Cyan
  • Magenta
  • Yellow
  • K (Black - "Key")
RGB → CMYK is lossy!
Some vibrant screen colors can't be printed.

Why K for black? Mixing C+M+Y creates muddy brown, not true black. Pure black ink (K) saves money and creates sharper text.

Print tips:

  • Design in CMYK if the final output is print
  • Convert RGB to CMYK early to see "true" printed colors
  • Rich black for large areas: C:60 M:40 Y:40 K:100

Alpha Channel: Transparency

Add transparency with the alpha channel:

  • RGBA: rgba(255, 87, 51, 0.5) (50% transparent)
  • HSLA: hsla(14, 100%, 60%, 0.5)
  • HEX8: #FF573380 (last 2 digits = alpha)

Alpha values:

  • 0 = Fully transparent
  • 0.5 = 50% transparent
  • 1 = Fully opaque

Common use cases:

  • Overlays and shadows
  • Glass/frosted effects
  • Hover states
  • Background tints

Pro Tips

🎯 For Web Development:

  • Use CSS custom properties for color themes
  • Test colors in both light and dark modes
  • Consider colorblind users (8% of men!)

🖨️ For Print:

  • Always work in CMYK from the start
  • Request a physical proof before large prints
  • Understand your printer's color gamut

🎨 For Design:

  • Build color palettes with consistent saturation/lightness
  • Use HSL for creating color variations
  • Limit your palette (3-5 main colors)