#CC5FE2#CC5FE2

#CC5FE2 is a light, highly saturated purple. Relative luminance 0.265; OKLCH L 66.9% C 0.210 H 320.6°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#CC5FE2
RGBrgb(204, 95, 226)
HSLhsl(290, 69%, 63%)
HSVhsv(290, 58%, 89%)
CMYKcmyk(9.7%, 58%, 0%, 11.4%)
CIE-LABlab(58.52, 61.78, -47.99)
CIE-LCHlch(58.52, 78.23, 322.16°)
OKLaboklab(66.87% 0.1627 -0.1335)
OKLCHoklch(66.87% 0.21 320.6)
XYZxyz(42.7199, 26.5147, 74.8044)
Luminance0.2651 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC5FE2 #75E25F
analogous
#8B5FE2 #CC5FE2 #E25FB6
triadic
#CC5FE2 #E2CC5F #5FE2CC
tetradic
#CC5FE2 #E28B5F #75E25F #5FB6E2
square
#CC5FE2 #E28B5F #75E25F #5FB6E2
split-complementary
#CC5FE2 #B6E25F #5FE28B
monochromatic
#911EA8 #BB2BD9 #CC5FE2 #DD93EB #EDC7F5

Accessibility & contrast

On white

3.33
#CC5FE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#CC5FE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC5FE2
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC5FE2#FFFFFF#000000##000000
##CC5FE21.003.336.306.30
#FFFFFF3.331.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4385E6
Deuteranopia (green-blind)
#6B91DF
Tritanopia (blue-blind)
#CD7398
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #cc5fe2;
/* rgb */ color: rgb(204, 95, 226);
/* oklch */ color: oklch(66.9% 0.210 320.6);
Tailwind
colors: {
  custom: {
    50: '#de92eb',
    500: '#cc5fe2',
    950: '#000000',
  },
}
SCSS
$custom: #cc5fe2;
$custom-light: #de92eb;
$custom-dark: #000000;
JSON
{
  "hex": "#cc5fe2",
  "rgb": {
    "r": 204,
    "g": 95,
    "b": 226
  },
  "hsl": {
    "h": 289.924,
    "s": 69.312,
    "l": 62.941
  },
  "oklch": {
    "l": 0.66867,
    "c": 0.21045,
    "h": 320.6
  },
  "luminance": 0.26513
}

Semantic roles & 50–950 ramp

primary
#CC5FE2
secondary
#BFE6B7
accent
#D11434
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#150D16
muted
#847E84

Preview Lab

Preview with #CC5FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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