#CD87D7#CD87D7

#CD87D7 is a light, vivid purple. Relative luminance 0.352; OKLCH L 72.2% C 0.135 H 322.4°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#CD87D7
RGBrgb(205, 135, 215)
HSLhsl(293, 50%, 69%)
HSVhsv(293, 37%, 84%)
CMYKcmyk(4.7%, 37.2%, 0%, 15.7%)
CIE-LABlab(65.92, 39.78, -30.26)
CIE-LCHlch(65.92, 49.98, 322.74°)
OKLaboklab(72.22% 0.1073 -0.0827)
OKLCHoklch(72.22% 0.135 322.4)
XYZxyz(46.1052, 35.2150, 68.6453)
Luminance0.3521 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87D7 #91D787
analogous
#A587D7 #CD87D7 #D787B9
triadic
#CD87D7 #D7CD87 #87D7CD
tetradic
#CD87D7 #D7A587 #91D787 #87B9D7
square
#CD87D7 #D7A587 #91D787 #87B9D7
split-complementary
#CD87D7 #B9D787 #87D7A5
monochromatic
#9C39AB #BA59C8 #CD87D7 #E0B5E6 #F3E3F6

Accessibility & contrast

On white

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

On black

8.04
#CD87D7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87D7
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87D7#FFFFFF#000000##000000
##CD87D71.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7E9BDA
Deuteranopia (green-blind)
#90A3D4
Tritanopia (blue-blind)
#CF90A5
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #cd87d7;
/* rgb */ color: rgb(205, 135, 215);
/* oklch */ color: oklch(72.2% 0.135 322.4);
Tailwind
colors: {
  custom: {
    50: '#ddabe3',
    500: '#cd87d7',
    950: '#000000',
  },
}
SCSS
$custom: #cd87d7;
$custom-light: #ddabe3;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87d7",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 215
  },
  "hsl": {
    "h": 292.5,
    "s": 50,
    "l": 68.627
  },
  "oklch": {
    "l": 0.72218,
    "c": 0.13549,
    "h": 322.4
  },
  "luminance": 0.35213
}

Semantic roles & 50–950 ramp

primary
#CD87D7
secondary
#D4E9D1
accent
#BD283B
background
#FDFAFD
surface
#FBF4FB
border
#D4CED4
text
#151015
muted
#837F83

Preview Lab

Preview with #CD87D7

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

Preview Lab → · Contrast checker → · Palette generator →

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