#CB87EA#CB87EA

#CB87EA is a light, vivid purple. Relative luminance 0.360; OKLCH L 72.9% C 0.155 H 314.6°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#CB87EA
RGBrgb(203, 135, 234)
HSLhsl(281, 70%, 72%)
HSVhsv(281, 42%, 92%)
CMYKcmyk(13.2%, 42.3%, 0%, 8.2%)
CIE-LABlab(66.49, 42.99, -39.90)
CIE-LCHlch(66.49, 58.65, 317.13°)
OKLaboklab(72.87% 0.1088 -0.1104)
OKLCHoklch(72.87% 0.155 314.6)
XYZxyz(48.1415, 35.9661, 82.2321)
Luminance0.3597 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87EA #A6EA87
analogous
#9987EA #CB87EA #EA87D8
triadic
#CB87EA #EACB87 #87EACB
tetradic
#CB87EA #EA9987 #A6EA87 #87D8EA
square
#CB87EA #EA9987 #A6EA87 #87D8EA
split-complementary
#CB87EA #D8EA87 #87EA99
monochromatic
#9C25D2 #B453E1 #CB87EA #E2BBF3 #F4E5FA

Accessibility & contrast

On white

2.56
#CB87EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.19
#CB87EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87EA
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87EA#FFFFFF#000000##000000
##CB87EA1.002.568.198.19
#FFFFFF2.561.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#759EEE
Deuteranopia (green-blind)
#86A4E7
Tritanopia (blue-blind)
#C995AD
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #cb87ea;
/* rgb */ color: rgb(203, 135, 234);
/* oklch */ color: oklch(72.9% 0.155 314.6);
Tailwind
colors: {
  custom: {
    50: '#dcabf1',
    500: '#cb87ea',
    950: '#000000',
  },
}
SCSS
$custom: #cb87ea;
$custom-light: #dcabf1;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87ea",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 234
  },
  "hsl": {
    "h": 281.212,
    "s": 70.213,
    "l": 72.353
  },
  "oklch": {
    "l": 0.72865,
    "c": 0.15502,
    "h": 314.6
  },
  "luminance": 0.35965
}

Semantic roles & 50–950 ramp

primary
#CB87EA
secondary
#E1F2D9
accent
#D2134F
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #CB87EA

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

Preview Lab → · Contrast checker → · Palette generator →

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