#CC87DB#CC87DB

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

Color values

HEX#CC87DB
RGBrgb(204, 135, 219)
HSLhsl(289, 54%, 69%)
HSVhsv(289, 38%, 86%)
CMYKcmyk(6.8%, 38.4%, 0%, 14.1%)
CIE-LABlab(65.97, 40.25, -32.41)
CIE-LCHlch(65.97, 51.68, 321.16°)
OKLaboklab(72.29% 0.107 -0.0889)
OKLCHoklch(72.29% 0.139 320.3)
XYZxyz(46.3504, 35.2813, 71.3725)
Luminance0.3528 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC87DB #96DB87
analogous
#A287DB #CC87DB #DB87C0
triadic
#CC87DB #DBCC87 #87DBCC
tetradic
#CC87DB #DBA287 #96DB87 #87C0DB
square
#CC87DB #DBA287 #96DB87 #87C0DB
split-complementary
#CC87DB #C0DB87 #87DBA2
monochromatic
#9C35B2 #B858CD #CC87DB #E0B6E9 #F4E5F7

Accessibility & contrast

On white

2.61
#CC87DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.06
#CC87DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC87DB
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC87DB#FFFFFF#000000##000000
##CC87DB1.002.618.068.06
#FFFFFF2.611.0021.0021.00
#0000008.0621.001.001.00
##0000008.0621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cc87db;
/* rgb */ color: rgb(204, 135, 219);
/* oklch */ color: oklch(72.3% 0.139 320.3);
Tailwind
colors: {
  custom: {
    50: '#ddabe6',
    500: '#cc87db',
    950: '#000000',
  },
}
SCSS
$custom: #cc87db;
$custom-light: #ddabe6;
$custom-dark: #000000;
JSON
{
  "hex": "#cc87db",
  "rgb": {
    "r": 204,
    "g": 135,
    "b": 219
  },
  "hsl": {
    "h": 289.286,
    "s": 53.846,
    "l": 69.412
  },
  "oklch": {
    "l": 0.72285,
    "c": 0.13914,
    "h": 320.3
  },
  "luminance": 0.3528
}

Semantic roles & 50–950 ramp

primary
#CC87DB
secondary
#D7EBD3
accent
#C12440
background
#FDFAFE
surface
#FBF4FC
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CC87DB

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

Preview Lab → · Contrast checker → · Palette generator →

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