#CC5CEC#CC5CEC

#CC5CEC is a light, highly saturated purple. Relative luminance 0.265; OKLCH L 67.1% C 0.224 H 318.1°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#CC5CEC
RGBrgb(204, 92, 236)
HSLhsl(287, 79%, 64%)
HSVhsv(287, 61%, 93%)
CMYKcmyk(13.6%, 61%, 0%, 7.5%)
CIE-LABlab(58.56, 65.04, -53.53)
CIE-LCHlch(58.56, 84.24, 320.54°)
OKLaboklab(67.06% 0.1666 -0.1496)
OKLCHoklch(67.06% 0.224 318.1)
XYZxyz(43.8672, 26.5496, 82.1545)
Luminance0.2655 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC5CEC #7CEC5C
analogous
#845CEC #CC5CEC #EC5CC4
triadic
#CC5CEC #ECCC5C #5CECCC
tetradic
#CC5CEC #EC845C #7CEC5C #5CC4EC
square
#CC5CEC #EC845C #7CEC5C #5CC4EC
split-complementary
#CC5CEC #C4EC5C #5CEC84
monochromatic
#9415B8 #BB25E6 #CC5CEC #DD93F2 #EECAF9

Accessibility & contrast

On white

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

On black

6.31
#CC5CEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC5CEC
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC5CEC#FFFFFF#000000##000000
##CC5CEC1.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3386F0
Deuteranopia (green-blind)
#6290E8
Tritanopia (blue-blind)
#CB749C
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #cc5cec;
/* rgb */ color: rgb(204, 92, 236);
/* oklch */ color: oklch(67.1% 0.224 318.1);
Tailwind
colors: {
  custom: {
    50: '#df90f3',
    500: '#cc5cec',
    950: '#000000',
  },
}
SCSS
$custom: #cc5cec;
$custom-light: #df90f3;
$custom-dark: #000000;
JSON
{
  "hex": "#cc5cec",
  "rgb": {
    "r": 204,
    "g": 92,
    "b": 236
  },
  "hsl": {
    "h": 286.667,
    "s": 79.121,
    "l": 64.314
  },
  "oklch": {
    "l": 0.67062,
    "c": 0.22396,
    "h": 318.1
  },
  "luminance": 0.26548
}

Semantic roles & 50–950 ramp

primary
#CC5CEC
secondary
#C4EBB9
accent
#DB0A39
background
#FEF9FE
surface
#FCF1FD
border
#D5CBD5
text
#160D17
muted
#847E85

Preview Lab

Preview with #CC5CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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