#CB87DB#CB87DB

#CB87DB is a light, vivid purple. Relative luminance 0.351; OKLCH L 72.2% C 0.139 H 319.8°. Best body text is #000000 at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#CB87DB
RGBrgb(203, 135, 219)
HSLhsl(289, 54%, 69%)
HSVhsv(289, 38%, 86%)
CMYKcmyk(7.3%, 38.4%, 0%, 14.1%)
CIE-LABlab(65.86, 39.95, -32.59)
CIE-LCHlch(65.86, 51.55, 320.79°)
OKLaboklab(72.18% 0.1059 -0.0894)
OKLCHoklch(72.18% 0.139 319.8)
XYZxyz(46.0771, 35.1404, 71.3597)
Luminance0.3514 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87DB #97DB87
analogous
#A187DB #CB87DB #DB87C1
triadic
#CB87DB #DBCB87 #87DBCB
tetradic
#CB87DB #DBA187 #97DB87 #87C1DB
square
#CB87DB #DBA187 #97DB87 #87C1DB
split-complementary
#CB87DB #C1DB87 #87DBA1
monochromatic
#9A35B2 #B758CD #CB87DB #DFB6E9 #F4E5F7

Accessibility & contrast

On white

2.62
#CB87DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.03
#CB87DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87DB
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87DB#FFFFFF#000000##000000
##CB87DB1.002.628.038.03
#FFFFFF2.621.0021.0021.00
#0000008.0321.001.001.00
##0000008.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C9BDE
Deuteranopia (green-blind)
#8DA3D8
Tritanopia (blue-blind)
#CC91A7
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #cb87db;
/* rgb */ color: rgb(203, 135, 219);
/* oklch */ color: oklch(72.2% 0.139 319.8);
Tailwind
colors: {
  custom: {
    50: '#dcabe6',
    500: '#cb87db',
    950: '#000000',
  },
}
SCSS
$custom: #cb87db;
$custom-light: #dcabe6;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87db",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 219
  },
  "hsl": {
    "h": 288.571,
    "s": 53.846,
    "l": 69.412
  },
  "oklch": {
    "l": 0.72178,
    "c": 0.13859,
    "h": 319.8
  },
  "luminance": 0.35139
}

Semantic roles & 50–950 ramp

primary
#CB87DB
secondary
#D7EBD3
accent
#C12442
background
#FDFAFE
surface
#FBF4FC
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CB87DB

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

Preview Lab → · Contrast checker → · Palette generator →

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