#CC87DE#CC87DE

#CC87DE is a light, vivid purple. Relative luminance 0.354; OKLCH L 72.4% C 0.142 H 319.1°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#CC87DE
RGBrgb(204, 135, 222)
HSLhsl(288, 57%, 70%)
HSVhsv(288, 39%, 87%)
CMYKcmyk(8.1%, 39.2%, 0%, 12.9%)
CIE-LABlab(66.09, 40.84, -33.89)
CIE-LCHlch(66.09, 53.07, 320.32°)
OKLaboklab(72.42% 0.1077 -0.0931)
OKLCHoklch(72.42% 0.142 319.1)
XYZxyz(46.7489, 35.4407, 73.4712)
Luminance0.3544 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC87DE #99DE87
analogous
#A087DE #CC87DE #DE87C5
triadic
#CC87DE #DECC87 #87DECC
tetradic
#CC87DE #DEA087 #99DE87 #87C5DE
square
#CC87DE #DEA087 #99DE87 #87C5DE
split-complementary
#CC87DE #C5DE87 #87DEA0
monochromatic
#9C33B8 #B857D1 #CC87DE #E0B7EB #F5E7F8

Accessibility & contrast

On white

2.60
#CC87DE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.09
#CC87DE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC87DE
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC87DE#FFFFFF#000000##000000
##CC87DE1.002.608.098.09
#FFFFFF2.601.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B9CE1
Deuteranopia (green-blind)
#8CA3DB
Tritanopia (blue-blind)
#CD92A8
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #cc87de;
/* rgb */ color: rgb(204, 135, 222);
/* oklch */ color: oklch(72.4% 0.142 319.1);
Tailwind
colors: {
  custom: {
    50: '#ddabe8',
    500: '#cc87de',
    950: '#000000',
  },
}
SCSS
$custom: #cc87de;
$custom-light: #ddabe8;
$custom-dark: #000000;
JSON
{
  "hex": "#cc87de",
  "rgb": {
    "r": 204,
    "g": 135,
    "b": 222
  },
  "hsl": {
    "h": 287.586,
    "s": 56.863,
    "l": 70
  },
  "oklch": {
    "l": 0.72418,
    "c": 0.14235,
    "h": 319.1
  },
  "luminance": 0.35439
}

Semantic roles & 50–950 ramp

primary
#CC87DE
secondary
#D9EDD4
accent
#C42143
background
#FDFAFE
surface
#FBF4FC
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CC87DE

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

Preview Lab → · Contrast checker → · Palette generator →

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