#CB87DD#CB87DD

#CB87DD is a light, vivid purple. Relative luminance 0.352; OKLCH L 72.3% C 0.141 H 319.1°. Best body text is #000000 at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#CB87DD
RGBrgb(203, 135, 221)
HSLhsl(287, 56%, 70%)
HSVhsv(287, 39%, 87%)
CMYKcmyk(8.1%, 38.9%, 0%, 13.3%)
CIE-LABlab(65.94, 40.34, -33.57)
CIE-LCHlch(65.94, 52.49, 320.23°)
OKLaboklab(72.27% 0.1063 -0.0922)
OKLCHoklch(72.27% 0.141 319.1)
XYZxyz(46.3420, 35.2463, 72.7546)
Luminance0.3524 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87DD #99DD87
analogous
#A087DD #CB87DD #DD87C4
triadic
#CB87DD #DDCB87 #87DDCB
tetradic
#CB87DD #DDA087 #99DD87 #87C4DD
square
#CB87DD #DDA087 #99DD87 #87C4DD
split-complementary
#CB87DD #C4DD87 #87DDA0
monochromatic
#9B34B6 #B657CF #CB87DD #E0B7EB #F4E6F8

Accessibility & contrast

On white

2.61
#CB87DD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.05
#CB87DD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87DD
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87DD#FFFFFF#000000##000000
##CB87DD1.002.618.058.05
#FFFFFF2.611.0021.0021.00
#0000008.0521.001.001.00
##0000008.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B9CE0
Deuteranopia (green-blind)
#8CA3DA
Tritanopia (blue-blind)
#CC92A8
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #cb87dd;
/* rgb */ color: rgb(203, 135, 221);
/* oklch */ color: oklch(72.3% 0.141 319.1);
Tailwind
colors: {
  custom: {
    50: '#dcabe8',
    500: '#cb87dd',
    950: '#000000',
  },
}
SCSS
$custom: #cb87dd;
$custom-light: #dcabe8;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87dd",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 221
  },
  "hsl": {
    "h": 287.442,
    "s": 55.844,
    "l": 69.804
  },
  "oklch": {
    "l": 0.72267,
    "c": 0.14073,
    "h": 319.1
  },
  "luminance": 0.35245
}

Semantic roles & 50–950 ramp

primary
#CB87DD
secondary
#D9ECD4
accent
#C32244
background
#FDFAFE
surface
#FBF4FC
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CB87DD

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

Preview Lab → · Contrast checker → · Palette generator →

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