#CC42E5#CC42E5

#CC42E5 is a light, highly saturated purple. Relative luminance 0.224; OKLCH L 64.0% C 0.250 H 321.0°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#CC42E5
RGBrgb(204, 66, 229)
HSLhsl(291, 76%, 58%)
HSVhsv(291, 71%, 90%)
CMYKcmyk(10.9%, 71.2%, 0%, 10.2%)
CIE-LABlab(54.44, 74.14, -56.18)
CIE-LCHlch(54.44, 93.02, 322.85°)
OKLaboklab(63.98% 0.1944 -0.1572)
OKLCHoklch(63.98% 0.25 321)
XYZxyz(40.9913, 22.3931, 76.2767)
Luminance0.2239 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42E5 #5BE542
analogous
#7B42E5 #CC42E5 #E542AC
triadic
#CC42E5 #E5CC42 #42E5CC
tetradic
#CC42E5 #E57B42 #5BE542 #42ACE5
square
#CC42E5 #E57B42 #5BE542 #42ACE5
split-complementary
#CC42E5 #ACE542 #42E57B
monochromatic
#841598 #B21CCE #CC42E5 #DB78EC #E9AEF4

Accessibility & contrast

On white

3.83
#CC42E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#CC42E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42E5
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42E5#FFFFFF#000000##000000
##CC42E51.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EA
Deuteranopia (green-blind)
#5587E1
Tritanopia (blue-blind)
#CE6190
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #cc42e5;
/* rgb */ color: rgb(204, 66, 229);
/* oklch */ color: oklch(64.0% 0.250 321.0);
Tailwind
colors: {
  custom: {
    50: '#e083ee',
    500: '#cc42e5',
    950: '#000000',
  },
}
SCSS
$custom: #cc42e5;
$custom-light: #e083ee;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42e5",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 229
  },
  "hsl": {
    "h": 290.798,
    "s": 75.814,
    "l": 57.843
  },
  "oklch": {
    "l": 0.63976,
    "c": 0.24998,
    "h": 321
  },
  "luminance": 0.22391
}

Semantic roles & 50–950 ramp

primary
#CC42E5
secondary
#ABE2A1
accent
#F23552
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CC42E5

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#CC42E5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva