#CB87DC#CB87DC

#CB87DC is a light, vivid purple. Relative luminance 0.352; OKLCH L 72.2% C 0.140 H 319.4°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#CB87DC
RGBrgb(203, 135, 220)
HSLhsl(288, 55%, 70%)
HSVhsv(288, 39%, 86%)
CMYKcmyk(7.7%, 38.6%, 0%, 13.7%)
CIE-LABlab(65.90, 40.15, -33.08)
CIE-LCHlch(65.90, 52.02, 320.51°)
OKLaboklab(72.22% 0.1061 -0.0908)
OKLCHoklch(72.22% 0.14 319.4)
XYZxyz(46.2092, 35.1932, 72.0551)
Luminance0.3519 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87DC #98DC87
analogous
#A187DC #CB87DC #DC87C3
triadic
#CB87DC #DCCB87 #87DCCB
tetradic
#CB87DC #DCA187 #98DC87 #87C3DC
square
#CB87DC #DCA187 #98DC87 #87C3DC
split-complementary
#CB87DC #C3DC87 #87DCA1
monochromatic
#9B35B4 #B658CE #CB87DC #E0B6EA #F4E6F8

Accessibility & contrast

On white

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

On black

8.04
#CB87DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87DC
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87DC#FFFFFF#000000##000000
##CB87DC1.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cb87dc;
/* rgb */ color: rgb(203, 135, 220);
/* oklch */ color: oklch(72.2% 0.140 319.4);
Tailwind
colors: {
  custom: {
    50: '#dcabe7',
    500: '#cb87dc',
    950: '#000000',
  },
}
SCSS
$custom: #cb87dc;
$custom-light: #dcabe7;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87dc",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 220
  },
  "hsl": {
    "h": 288,
    "s": 54.839,
    "l": 69.608
  },
  "oklch": {
    "l": 0.72222,
    "c": 0.13966,
    "h": 319.4
  },
  "luminance": 0.35192
}

Semantic roles & 50–950 ramp

primary
#CB87DC
secondary
#D8ECD3
accent
#C22343
background
#FDFAFE
surface
#FBF4FC
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CB87DC

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

Preview Lab → · Contrast checker → · Palette generator →

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