#CD87C2#CD87C2

#CD87C2 is a light, moderate purple. Relative luminance 0.342; OKLCH L 71.4% C 0.115 H 332.5°. Best body text is #000000 at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#CD87C2
RGBrgb(205, 135, 194)
HSLhsl(309, 41%, 67%)
HSVhsv(309, 34%, 80%)
CMYKcmyk(0%, 34.1%, 5.4%, 19.6%)
CIE-LABlab(65.12, 35.88, -19.73)
CIE-LCHlch(65.12, 40.94, 331.19°)
OKLaboklab(71.36% 0.1019 -0.0531)
OKLCHoklch(71.36% 0.115 332.5)
XYZxyz(43.5779, 34.2041, 55.3351)
Luminance0.3420 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87C2 #87CD92
analogous
#B587CD #CD87C2 #CD879F
triadic
#CD87C2 #C2CD87 #87C2CD
tetradic
#CD87C2 #CDB587 #87CD92 #879FCD
square
#CD87C2 #CDB587 #87CD92 #879FCD
split-complementary
#CD87C2 #9FCD87 #87CDB5
monochromatic
#9A408C #BB5CAC #CD87C2 #DFB2D8 #F1DDEE

Accessibility & contrast

On white

2.68
#CD87C2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.84
#CD87C2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87C2
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87C2#FFFFFF#000000##000000
##CD87C21.002.687.847.84
#FFFFFF2.681.0021.0021.00
#0000007.8421.001.001.00
##0000007.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8698C4
Deuteranopia (green-blind)
#97A2C0
Tritanopia (blue-blind)
#D38B9C
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cd87c2;
/* rgb */ color: rgb(205, 135, 194);
/* oklch */ color: oklch(71.4% 0.115 332.5);
Tailwind
colors: {
  custom: {
    50: '#ddabd4',
    500: '#cd87c2',
    950: '#000000',
  },
}
SCSS
$custom: #cd87c2;
$custom-light: #ddabd4;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87c2",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 194
  },
  "hsl": {
    "h": 309.429,
    "s": 41.176,
    "l": 66.667
  },
  "oklch": {
    "l": 0.71358,
    "c": 0.11491,
    "h": 332.5
  },
  "luminance": 0.34202
}

Semantic roles & 50–950 ramp

primary
#CD87C2
secondary
#CDE3D0
accent
#B44631
background
#FDFAFD
surface
#FBF4FA
border
#D4CED3
text
#151014
muted
#837F83

Preview Lab

Preview with #CD87C2

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

Preview Lab → · Contrast checker → · Palette generator →

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