#CC87E2#CC87E2

#CC87E2 is a light, vivid purple. Relative luminance 0.357; OKLCH L 72.6% C 0.147 H 317.7°. Best body text is #000000 at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#CC87E2
RGBrgb(204, 135, 226)
HSLhsl(285, 61%, 71%)
HSVhsv(285, 40%, 89%)
CMYKcmyk(9.7%, 40.3%, 0%, 11.4%)
CIE-LABlab(66.26, 41.65, -35.84)
CIE-LCHlch(66.26, 54.95, 319.28°)
OKLaboklab(72.6% 0.1085 -0.0987)
OKLCHoklch(72.6% 0.147 317.7)
XYZxyz(47.2914, 35.6576, 76.3282)
Luminance0.3566 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC87E2 #9DE287
analogous
#9E87E2 #CC87E2 #E287CA
triadic
#CC87E2 #E2CC87 #87E2CC
tetradic
#CC87E2 #E29E87 #9DE287 #87CAE2
square
#CC87E2 #E29E87 #9DE287 #87CAE2
split-complementary
#CC87E2 #CAE287 #87E29E
monochromatic
#9D2EC0 #B756D6 #CC87E2 #E1B8EE #F5E6F9

Accessibility & contrast

On white

2.58
#CC87E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.13
#CC87E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC87E2
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC87E2#FFFFFF#000000##000000
##CC87E21.002.588.138.13
#FFFFFF2.581.0021.0021.00
#0000008.1321.001.001.00
##0000008.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#799DE5
Deuteranopia (green-blind)
#8BA3DF
Tritanopia (blue-blind)
#CC93AA
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #cc87e2;
/* rgb */ color: rgb(204, 135, 226);
/* oklch */ color: oklch(72.6% 0.147 317.7);
Tailwind
colors: {
  custom: {
    50: '#ddabeb',
    500: '#cc87e2',
    950: '#000000',
  },
}
SCSS
$custom: #cc87e2;
$custom-light: #ddabeb;
$custom-dark: #000000;
JSON
{
  "hex": "#cc87e2",
  "rgb": {
    "r": 204,
    "g": 135,
    "b": 226
  },
  "hsl": {
    "h": 285.495,
    "s": 61.074,
    "l": 70.784
  },
  "oklch": {
    "l": 0.72599,
    "c": 0.14668,
    "h": 317.7
  },
  "luminance": 0.35656
}

Semantic roles & 50–950 ramp

primary
#CC87E2
secondary
#DCEFD6
accent
#C91D46
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CC87E2

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

Preview Lab → · Contrast checker → · Palette generator →

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