#CD87D2#CD87D2

#CD87D2 is a light, vivid purple. Relative luminance 0.350; OKLCH L 72.0% C 0.130 H 324.5°. Best body text is #000000 at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#CD87D2
RGBrgb(205, 135, 210)
HSLhsl(296, 45%, 68%)
HSVhsv(296, 36%, 82%)
CMYKcmyk(2.4%, 35.7%, 0%, 17.6%)
CIE-LABlab(65.72, 38.82, -27.78)
CIE-LCHlch(65.72, 47.73, 324.41°)
OKLaboklab(72% 0.1061 -0.0757)
OKLCHoklch(72% 0.13 324.5)
XYZxyz(45.4725, 34.9619, 65.3133)
Luminance0.3496 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87D2 #8CD287
analogous
#A787D2 #CD87D2 #D287B1
triadic
#CD87D2 #D2CD87 #87D2CD
tetradic
#CD87D2 #D2A787 #8CD287 #87B1D2
square
#CD87D2 #D2A787 #8CD287 #87B1D2
split-complementary
#CD87D2 #B1D287 #87D2A7
monochromatic
#9B3DA2 #BA5AC1 #CD87D2 #E0B4E3 #F2E0F3

Accessibility & contrast

On white

2.63
#CD87D2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.99
#CD87D2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87D2
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87D2#FFFFFF#000000##000000
##CD87D21.002.637.997.99
#FFFFFF2.631.0021.0021.00
#0000007.9921.001.001.00
##0000007.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#809AD5
Deuteranopia (green-blind)
#92A3D0
Tritanopia (blue-blind)
#D08FA3
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #cd87d2;
/* rgb */ color: rgb(205, 135, 210);
/* oklch */ color: oklch(72.0% 0.130 324.5);
Tailwind
colors: {
  custom: {
    50: '#ddabe0',
    500: '#cd87d2',
    950: '#000000',
  },
}
SCSS
$custom: #cd87d2;
$custom-light: #ddabe0;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87d2",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 210
  },
  "hsl": {
    "h": 296,
    "s": 45.455,
    "l": 67.647
  },
  "oklch": {
    "l": 0.72004,
    "c": 0.13036,
    "h": 324.5
  },
  "luminance": 0.3496
}

Semantic roles & 50–950 ramp

primary
#CD87D2
secondary
#D0E6CF
accent
#B92D36
background
#FDFAFD
surface
#FBF4FB
border
#D4CED4
text
#151015
muted
#837F83

Preview Lab

Preview with #CD87D2

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

Preview Lab → · Contrast checker → · Palette generator →

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