#CD87DB#CD87DB

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

Color values

HEX#CD87DB
RGBrgb(205, 135, 219)
HSLhsl(290, 54%, 69%)
HSVhsv(290, 38%, 86%)
CMYKcmyk(6.4%, 38.4%, 0%, 14.1%)
CIE-LABlab(66.08, 40.56, -32.23)
CIE-LCHlch(66.08, 51.80, 321.52°)
OKLaboklab(72.39% 0.1082 -0.0884)
OKLCHoklch(72.39% 0.14 320.8)
XYZxyz(46.6254, 35.4231, 71.3854)
Luminance0.3542 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87DB #95DB87
analogous
#A387DB #CD87DB #DB87BF
triadic
#CD87DB #DBCD87 #87DBCD
tetradic
#CD87DB #DBA387 #95DB87 #87BFDB
square
#CD87DB #DBA387 #95DB87 #87BFDB
split-complementary
#CD87DB #BFDB87 #87DBA3
monochromatic
#9D35B2 #B958CD #CD87DB #E1B6E9 #F4E5F7

Accessibility & contrast

On white

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

On black

8.08
#CD87DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87DB
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87DB#FFFFFF#000000##000000
##CD87DB1.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C9CDE
Deuteranopia (green-blind)
#8EA3D8
Tritanopia (blue-blind)
#CF91A7
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #cd87db;
/* rgb */ color: rgb(205, 135, 219);
/* oklch */ color: oklch(72.4% 0.140 320.8);
Tailwind
colors: {
  custom: {
    50: '#ddabe6',
    500: '#cd87db',
    950: '#000000',
  },
}
SCSS
$custom: #cd87db;
$custom-light: #ddabe6;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87db",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 219
  },
  "hsl": {
    "h": 290,
    "s": 53.846,
    "l": 69.412
  },
  "oklch": {
    "l": 0.72392,
    "c": 0.13969,
    "h": 320.8
  },
  "luminance": 0.35422
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD87DB

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

Preview Lab → · Contrast checker → · Palette generator →

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