#CC87DC#CC87DC

#CC87DC is a light, vivid purple. Relative luminance 0.353; OKLCH L 72.3% C 0.140 H 319.9°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#CC87DC
RGBrgb(204, 135, 220)
HSLhsl(289, 55%, 70%)
HSVhsv(289, 39%, 86%)
CMYKcmyk(7.3%, 38.6%, 0%, 13.7%)
CIE-LABlab(66.01, 40.45, -32.90)
CIE-LCHlch(66.01, 52.14, 320.87°)
OKLaboklab(72.33% 0.1072 -0.0903)
OKLCHoklch(72.33% 0.14 319.9)
XYZxyz(46.4824, 35.3341, 72.0679)
Luminance0.3533 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC87DC #97DC87
analogous
#A287DC #CC87DC #DC87C2
triadic
#CC87DC #DCCC87 #87DCCC
tetradic
#CC87DC #DCA287 #97DC87 #87C2DC
square
#CC87DC #DCA287 #97DC87 #87C2DC
split-complementary
#CC87DC #C2DC87 #87DCA2
monochromatic
#9C35B4 #B858CE #CC87DC #E0B6EA #F4E6F8

Accessibility & contrast

On white

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

On black

8.07
#CC87DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC87DC
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC87DC#FFFFFF#000000##000000
##CC87DC1.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C9CDF
Deuteranopia (green-blind)
#8DA3D9
Tritanopia (blue-blind)
#CD91A7
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #cc87dc;
/* rgb */ color: rgb(204, 135, 220);
/* oklch */ color: oklch(72.3% 0.140 319.9);
Tailwind
colors: {
  custom: {
    50: '#ddabe7',
    500: '#cc87dc',
    950: '#000000',
  },
}
SCSS
$custom: #cc87dc;
$custom-light: #ddabe7;
$custom-dark: #000000;
JSON
{
  "hex": "#cc87dc",
  "rgb": {
    "r": 204,
    "g": 135,
    "b": 220
  },
  "hsl": {
    "h": 288.706,
    "s": 54.839,
    "l": 69.608
  },
  "oklch": {
    "l": 0.72329,
    "c": 0.14019,
    "h": 319.9
  },
  "luminance": 0.35333
}

Semantic roles & 50–950 ramp

primary
#CC87DC
secondary
#D8ECD3
accent
#C22341
background
#FDFAFE
surface
#FBF4FC
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CC87DC

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

Preview Lab → · Contrast checker → · Palette generator →

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