#CB87DE#CB87DE

#CB87DE is a light, vivid purple. Relative luminance 0.353; OKLCH L 72.3% C 0.142 H 318.7°. Best body text is #000000 at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#CB87DE
RGBrgb(203, 135, 222)
HSLhsl(287, 57%, 70%)
HSVhsv(287, 39%, 87%)
CMYKcmyk(8.6%, 39.2%, 0%, 12.9%)
CIE-LABlab(65.98, 40.54, -34.06)
CIE-LCHlch(65.98, 52.95, 319.96°)
OKLaboklab(72.31% 0.1065 -0.0936)
OKLCHoklch(72.31% 0.142 318.7)
XYZxyz(46.4756, 35.2998, 73.4584)
Luminance0.3530 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87DE #9ADE87
analogous
#A087DE #CB87DE #DE87C5
triadic
#CB87DE #DECB87 #87DECB
tetradic
#CB87DE #DEA087 #9ADE87 #87C5DE
square
#CB87DE #DEA087 #9ADE87 #87C5DE
split-complementary
#CB87DE #C5DE87 #87DEA0
monochromatic
#9B33B8 #B657D1 #CB87DE #E0B7EB #F5E7F8

Accessibility & contrast

On white

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

On black

8.06
#CB87DE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87DE
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87DE#FFFFFF#000000##000000
##CB87DE1.002.618.068.06
#FFFFFF2.611.0021.0021.00
#0000008.0621.001.001.00
##0000008.0621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cb87de;
/* rgb */ color: rgb(203, 135, 222);
/* oklch */ color: oklch(72.3% 0.142 318.7);
Tailwind
colors: {
  custom: {
    50: '#dcabe8',
    500: '#cb87de',
    950: '#000000',
  },
}
SCSS
$custom: #cb87de;
$custom-light: #dcabe8;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87de",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 222
  },
  "hsl": {
    "h": 286.897,
    "s": 56.863,
    "l": 70
  },
  "oklch": {
    "l": 0.72312,
    "c": 0.14181,
    "h": 318.7
  },
  "luminance": 0.35298
}

Semantic roles & 50–950 ramp

primary
#CB87DE
secondary
#DAEDD4
accent
#C42145
background
#FDFAFE
surface
#FBF4FC
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CB87DE

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

Preview Lab → · Contrast checker → · Palette generator →

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