#CB87CC#CB87CC

#CB87CC is a light, vivid purple. Relative luminance 0.344; OKLCH L 71.5% C 0.123 H 326.3°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#CB87CC
RGBrgb(203, 135, 204)
HSLhsl(299, 40%, 66%)
HSVhsv(299, 34%, 80%)
CMYKcmyk(0.5%, 33.8%, 0%, 20%)
CIE-LABlab(65.27, 37.06, -25.14)
CIE-LCHlch(65.27, 44.78, 325.85°)
OKLaboklab(71.54% 0.1023 -0.0683)
OKLCHoklch(71.54% 0.123 326.3)
XYZxyz(44.1907, 34.3858, 61.4244)
Luminance0.3438 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87CC #88CC87
analogous
#A987CC #CB87CC #CC87AB
triadic
#CB87CC #CCCB87 #87CCCB
tetradic
#CB87CC #CCA987 #88CC87 #87ABCC
square
#CB87CC #CCA987 #88CC87 #87ABCC
split-complementary
#CB87CC #ABCC87 #87CCA9
monochromatic
#974198 #B85CBA #CB87CC #DEB2DE #F0DDF1

Accessibility & contrast

On white

2.67
#CB87CC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#CB87CC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87CC
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87CC#FFFFFF#000000##000000
##CB87CC1.002.677.887.88
#FFFFFF2.671.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8299CF
Deuteranopia (green-blind)
#93A1CA
Tritanopia (blue-blind)
#CF8DA0
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cb87cc;
/* rgb */ color: rgb(203, 135, 204);
/* oklch */ color: oklch(71.5% 0.123 326.3);
Tailwind
colors: {
  custom: {
    50: '#dcabdb',
    500: '#cb87cc',
    950: '#000000',
  },
}
SCSS
$custom: #cb87cc;
$custom-light: #dcabdb;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87cc",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 204
  },
  "hsl": {
    "h": 299.13,
    "s": 40.351,
    "l": 66.471
  },
  "oklch": {
    "l": 0.71538,
    "c": 0.12301,
    "h": 326.3
  },
  "luminance": 0.34384
}

Semantic roles & 50–950 ramp

primary
#CB87CC
secondary
#CDE3CC
accent
#B33234
background
#FDFAFD
surface
#FBF4FB
border
#D4CED4
text
#151015
muted
#837F83

Preview Lab

Preview with #CB87CC

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

Preview Lab → · Contrast checker → · Palette generator →

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