#CB87E9#CB87E9

#CB87E9 is a light, vivid purple. Relative luminance 0.359; OKLCH L 72.8% C 0.154 H 314.9°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#CB87E9
RGBrgb(203, 135, 233)
HSLhsl(282, 69%, 72%)
HSVhsv(282, 42%, 91%)
CMYKcmyk(12.9%, 42.1%, 0%, 8.6%)
CIE-LABlab(66.45, 42.78, -39.42)
CIE-LCHlch(66.45, 58.17, 317.34°)
OKLaboklab(72.82% 0.1087 -0.109)
OKLCHoklch(72.82% 0.154 314.9)
XYZxyz(47.9983, 35.9088, 81.4776)
Luminance0.3591 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87E9 #A5E987
analogous
#9A87E9 #CB87E9 #E987D6
triadic
#CB87E9 #E9CB87 #87E9CB
tetradic
#CB87E9 #E99A87 #A5E987 #87D6E9
square
#CB87E9 #E99A87 #A5E987 #87D6E9
split-complementary
#CB87E9 #D6E987 #87E99A
monochromatic
#9C26D0 #B553E0 #CB87E9 #E1BBF2 #F4E5FA

Accessibility & contrast

On white

2.57
#CB87E9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.18
#CB87E9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87E9
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87E9#FFFFFF#000000##000000
##CB87E91.002.578.188.18
#FFFFFF2.571.0021.0021.00
#0000008.1821.001.001.00
##0000008.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#759EED
Deuteranopia (green-blind)
#87A4E6
Tritanopia (blue-blind)
#C995AD
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #cb87e9;
/* rgb */ color: rgb(203, 135, 233);
/* oklch */ color: oklch(72.8% 0.154 314.9);
Tailwind
colors: {
  custom: {
    50: '#dcabf0',
    500: '#cb87e9',
    950: '#000000',
  },
}
SCSS
$custom: #cb87e9;
$custom-light: #dcabf0;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87e9",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 233
  },
  "hsl": {
    "h": 281.633,
    "s": 69.014,
    "l": 72.157
  },
  "oklch": {
    "l": 0.72818,
    "c": 0.1539,
    "h": 314.9
  },
  "luminance": 0.35908
}

Semantic roles & 50–950 ramp

primary
#CB87E9
secondary
#E1F2D9
accent
#D1154E
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CB87E9

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

Preview Lab → · Contrast checker → · Palette generator →

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