#CB87E7#CB87E7

#CB87E7 is a light, vivid purple. Relative luminance 0.358; OKLCH L 72.7% C 0.152 H 315.6°. Best body text is #000000 at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#CB87E7
RGBrgb(203, 135, 231)
HSLhsl(283, 67%, 72%)
HSVhsv(283, 42%, 91%)
CMYKcmyk(12.1%, 41.6%, 0%, 9.4%)
CIE-LABlab(66.36, 42.37, -38.45)
CIE-LCHlch(66.36, 57.21, 317.77°)
OKLaboklab(72.72% 0.1083 -0.1062)
OKLCHoklch(72.72% 0.152 315.6)
XYZxyz(47.7142, 35.7952, 79.9815)
Luminance0.3579 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87E7 #A3E787
analogous
#9B87E7 #CB87E7 #E787D3
triadic
#CB87E7 #E7CB87 #87E7CB
tetradic
#CB87E7 #E79B87 #A3E787 #87D3E7
square
#CB87E7 #E79B87 #A3E787 #87D3E7
split-complementary
#CB87E7 #D3E787 #87E79B
monochromatic
#9C29CB #B554DD #CB87E7 #E1BAF1 #F4E5FA

Accessibility & contrast

On white

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

On black

8.16
#CB87E7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87E7
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87E7#FFFFFF#000000##000000
##CB87E71.002.578.168.16
#FFFFFF2.571.0021.0021.00
#0000008.1621.001.001.00
##0000008.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#769DEA
Deuteranopia (green-blind)
#88A3E4
Tritanopia (blue-blind)
#CA94AC
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #cb87e7;
/* rgb */ color: rgb(203, 135, 231);
/* oklch */ color: oklch(72.7% 0.152 315.6);
Tailwind
colors: {
  custom: {
    50: '#dcabef',
    500: '#cb87e7',
    950: '#000000',
  },
}
SCSS
$custom: #cb87e7;
$custom-light: #dcabef;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87e7",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 231
  },
  "hsl": {
    "h": 282.5,
    "s": 66.667,
    "l": 71.765
  },
  "oklch": {
    "l": 0.72724,
    "c": 0.15168,
    "h": 315.6
  },
  "luminance": 0.35794
}

Semantic roles & 50–950 ramp

primary
#CB87E7
secondary
#E0F1D9
accent
#CF174C
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CB87E7

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

Preview Lab → · Contrast checker → · Palette generator →

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