#CD87DC#CD87DC

#CD87DC is a light, vivid purple. Relative luminance 0.355; OKLCH L 72.4% C 0.141 H 320.4°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#CD87DC
RGBrgb(205, 135, 220)
HSLhsl(289, 55%, 70%)
HSVhsv(289, 39%, 86%)
CMYKcmyk(6.8%, 38.6%, 0%, 13.7%)
CIE-LABlab(66.12, 40.75, -32.73)
CIE-LCHlch(66.12, 52.27, 321.23°)
OKLaboklab(72.44% 0.1084 -0.0898)
OKLCHoklch(72.44% 0.141 320.4)
XYZxyz(46.7575, 35.4759, 72.0808)
Luminance0.3547 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87DC #96DC87
analogous
#A387DC #CD87DC #DC87C1
triadic
#CD87DC #DCCD87 #87DCCD
tetradic
#CD87DC #DCA387 #96DC87 #87C1DC
square
#CD87DC #DCA387 #96DC87 #87C1DC
split-complementary
#CD87DC #C1DC87 #87DCA3
monochromatic
#9E35B4 #B958CE #CD87DC #E1B6EA #F4E6F8

Accessibility & contrast

On white

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

On black

8.09
#CD87DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87DC
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87DC#FFFFFF#000000##000000
##CD87DC1.002.598.098.09
#FFFFFF2.591.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C9CDF
Deuteranopia (green-blind)
#8EA3D9
Tritanopia (blue-blind)
#CE91A7
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #cd87dc;
/* rgb */ color: rgb(205, 135, 220);
/* oklch */ color: oklch(72.4% 0.141 320.4);
Tailwind
colors: {
  custom: {
    50: '#ddabe7',
    500: '#cd87dc',
    950: '#000000',
  },
}
SCSS
$custom: #cd87dc;
$custom-light: #ddabe7;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87dc",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 220
  },
  "hsl": {
    "h": 289.412,
    "s": 54.839,
    "l": 69.608
  },
  "oklch": {
    "l": 0.72436,
    "c": 0.14075,
    "h": 320.4
  },
  "luminance": 0.35474
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD87DC

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

Preview Lab → · Contrast checker → · Palette generator →

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