#CC87DF#CC87DF

#CC87DF is a light, vivid purple. Relative luminance 0.355; OKLCH L 72.5% C 0.143 H 318.8°. Best body text is #000000 at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#CC87DF
RGBrgb(204, 135, 223)
HSLhsl(287, 58%, 70%)
HSVhsv(287, 39%, 87%)
CMYKcmyk(8.5%, 39.5%, 0%, 12.5%)
CIE-LABlab(66.13, 41.04, -34.38)
CIE-LCHlch(66.13, 53.54, 320.05°)
OKLaboklab(72.46% 0.1079 -0.0945)
OKLCHoklch(72.46% 0.143 318.8)
XYZxyz(46.8833, 35.4944, 74.1792)
Luminance0.3549 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC87DF #9ADF87
analogous
#A087DF #CC87DF #DF87C6
triadic
#CC87DF #DFCC87 #87DFCC
tetradic
#CC87DF #DFA087 #9ADF87 #87C6DF
square
#CC87DF #DFA087 #9ADF87 #87C6DF
split-complementary
#CC87DF #C6DF87 #87DFA0
monochromatic
#9D32BA #B757D2 #CC87DF #E1B7EC #F5E7F9

Accessibility & contrast

On white

2.59
#CC87DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.10
#CC87DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC87DF
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC87DF#FFFFFF#000000##000000
##CC87DF1.002.598.108.10
#FFFFFF2.591.0021.0021.00
#0000008.1021.001.001.00
##0000008.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A9CE2
Deuteranopia (green-blind)
#8CA3DC
Tritanopia (blue-blind)
#CD92A9
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #cc87df;
/* rgb */ color: rgb(204, 135, 223);
/* oklch */ color: oklch(72.5% 0.143 318.8);
Tailwind
colors: {
  custom: {
    50: '#ddabe9',
    500: '#cc87df',
    950: '#000000',
  },
}
SCSS
$custom: #cc87df;
$custom-light: #ddabe9;
$custom-dark: #000000;
JSON
{
  "hex": "#cc87df",
  "rgb": {
    "r": 204,
    "g": 135,
    "b": 223
  },
  "hsl": {
    "h": 287.045,
    "s": 57.895,
    "l": 70.196
  },
  "oklch": {
    "l": 0.72463,
    "c": 0.14342,
    "h": 318.8
  },
  "luminance": 0.35493
}

Semantic roles & 50–950 ramp

primary
#CC87DF
secondary
#DAEDD5
accent
#C52044
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CC87DF

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

Preview Lab → · Contrast checker → · Palette generator →

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