#CD87CB#CD87CB

#CD87CB is a light, vivid purple. Relative luminance 0.346; OKLCH L 71.7% C 0.123 H 327.7°. Best body text is #000000 at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#CD87CB
RGBrgb(205, 135, 203)
HSLhsl(302, 41%, 67%)
HSVhsv(302, 34%, 80%)
CMYKcmyk(0%, 34.1%, 1%, 19.6%)
CIE-LABlab(65.45, 37.51, -24.28)
CIE-LCHlch(65.45, 44.68, 327.09°)
OKLaboklab(71.71% 0.1044 -0.0658)
OKLCHoklch(71.71% 0.123 327.7)
XYZxyz(44.6194, 34.6207, 60.8205)
Luminance0.3462 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87CB #87CD89
analogous
#AC87CD #CD87CB #CD87A8
triadic
#CD87CB #CBCD87 #87CBCD
tetradic
#CD87CB #CDAC87 #87CD89 #87A8CD
square
#CD87CB #CDAC87 #87CD89 #87A8CD
split-complementary
#CD87CB #A8CD87 #87CDAC
monochromatic
#9A4097 #BB5CB8 #CD87CB #DFB2DE #F1DDF0

Accessibility & contrast

On white

2.65
#CD87CB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.92
#CD87CB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87CB
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87CB#FFFFFF#000000##000000
##CD87CB1.002.657.927.92
#FFFFFF2.651.0021.0021.00
#0000007.9221.001.001.00
##0000007.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8399CE
Deuteranopia (green-blind)
#94A2C9
Tritanopia (blue-blind)
#D28DA0
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #cd87cb;
/* rgb */ color: rgb(205, 135, 203);
/* oklch */ color: oklch(71.7% 0.123 327.7);
Tailwind
colors: {
  custom: {
    50: '#ddabdb',
    500: '#cd87cb',
    950: '#000000',
  },
}
SCSS
$custom: #cd87cb;
$custom-light: #ddabdb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87cb",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 203
  },
  "hsl": {
    "h": 301.714,
    "s": 41.176,
    "l": 66.667
  },
  "oklch": {
    "l": 0.71715,
    "c": 0.12338,
    "h": 327.7
  },
  "luminance": 0.34619
}

Semantic roles & 50–950 ramp

primary
#CD87CB
secondary
#CDE3CD
accent
#B43531
background
#FDFAFD
surface
#FBF4FB
border
#D4CED4
text
#151015
muted
#837F83

Preview Lab

Preview with #CD87CB

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

Preview Lab → · Contrast checker → · Palette generator →

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