#CB87DF#CB87DF

#CB87DF is a light, vivid purple. Relative luminance 0.354; OKLCH L 72.4% C 0.143 H 318.3°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#CB87DF
RGBrgb(203, 135, 223)
HSLhsl(286, 58%, 70%)
HSVhsv(286, 39%, 87%)
CMYKcmyk(9%, 39.5%, 0%, 12.5%)
CIE-LABlab(66.02, 40.74, -34.55)
CIE-LCHlch(66.02, 53.42, 319.70°)
OKLaboklab(72.36% 0.1067 -0.095)
OKLCHoklch(72.36% 0.143 318.3)
XYZxyz(46.6100, 35.3535, 74.1663)
Luminance0.3535 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87DF #9BDF87
analogous
#9F87DF #CB87DF #DF87C7
triadic
#CB87DF #DFCB87 #87DFCB
tetradic
#CB87DF #DF9F87 #9BDF87 #87C7DF
square
#CB87DF #DF9F87 #9BDF87 #87C7DF
split-complementary
#CB87DF #C7DF87 #87DF9F
monochromatic
#9B32BA #B657D2 #CB87DF #E0B7EC #F5E7F9

Accessibility & contrast

On white

2.60
#CB87DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.07
#CB87DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87DF
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87DF#FFFFFF#000000##000000
##CB87DF1.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A9CE2
Deuteranopia (green-blind)
#8BA3DC
Tritanopia (blue-blind)
#CB92A9
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #cb87df;
/* rgb */ color: rgb(203, 135, 223);
/* oklch */ color: oklch(72.4% 0.143 318.3);
Tailwind
colors: {
  custom: {
    50: '#dcabe9',
    500: '#cb87df',
    950: '#000000',
  },
}
SCSS
$custom: #cb87df;
$custom-light: #dcabe9;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87df",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 223
  },
  "hsl": {
    "h": 286.364,
    "s": 57.895,
    "l": 70.196
  },
  "oklch": {
    "l": 0.72357,
    "c": 0.1429,
    "h": 318.3
  },
  "luminance": 0.35352
}

Semantic roles & 50–950 ramp

primary
#CB87DF
secondary
#DAEDD5
accent
#C52046
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CB87DF

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

Preview Lab → · Contrast checker → · Palette generator →

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