#CD87B2#CD87B2

#CD87B2 is a light, moderate pink. Relative luminance 0.335; OKLCH L 70.8% C 0.102 H 342.5°. Best body text is #000000 at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#CD87B2
RGBrgb(205, 135, 178)
HSLhsl(323, 41%, 67%)
HSVhsv(323, 34%, 80%)
CMYKcmyk(0%, 34.1%, 13.2%, 19.6%)
CIE-LABlab(64.58, 33.13, -11.54)
CIE-LCHlch(64.58, 35.08, 340.79°)
OKLaboklab(70.77% 0.0971 -0.0305)
OKLCHoklch(70.77% 0.102 342.5)
XYZxyz(41.8768, 33.5236, 46.3758)
Luminance0.3352 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87B2 #87CDA2
analogous
#C587CD #CD87B2 #CD878F
triadic
#CD87B2 #B2CD87 #87B2CD
tetradic
#CD87B2 #CDC587 #87CDA2 #878FCD
square
#CD87B2 #CDC587 #87CDA2 #878FCD
split-complementary
#CD87B2 #8FCD87 #87CDC5
monochromatic
#9A4077 #BB5C96 #CD87B2 #DFB2CE #F1DDE9

Accessibility & contrast

On white

2.73
#CD87B2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.70
#CD87B2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87B2
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87B2#FFFFFF#000000##000000
##CD87B21.002.737.707.70
#FFFFFF2.731.0021.0021.00
#0000007.7021.001.001.00
##0000007.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B96B4
Deuteranopia (green-blind)
#9CA1B0
Tritanopia (blue-blind)
#D58796
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cd87b2;
/* rgb */ color: rgb(205, 135, 178);
/* oklch */ color: oklch(70.8% 0.102 342.5);
Tailwind
colors: {
  custom: {
    50: '#ddabc9',
    500: '#cd87b2',
    950: '#000000',
  },
}
SCSS
$custom: #cd87b2;
$custom-light: #ddabc9;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87b2",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 178
  },
  "hsl": {
    "h": 323.143,
    "s": 41.176,
    "l": 66.667
  },
  "oklch": {
    "l": 0.70768,
    "c": 0.10174,
    "h": 342.5
  },
  "luminance": 0.33521
}

Semantic roles & 50–950 ramp

primary
#CD87B2
secondary
#CDE3D5
accent
#B46431
background
#FDFAFC
surface
#FBF4F8
border
#D4CED1
text
#151013
muted
#837F82

Preview Lab

Preview with #CD87B2

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

Preview Lab → · Contrast checker → · Palette generator →

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