#CB87E2#CB87E2

#CB87E2 is a light, vivid purple. Relative luminance 0.355; OKLCH L 72.5% C 0.146 H 317.2°. Best body text is #000000 at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#CB87E2
RGBrgb(203, 135, 226)
HSLhsl(285, 61%, 71%)
HSVhsv(285, 40%, 89%)
CMYKcmyk(10.2%, 40.3%, 0%, 11.4%)
CIE-LABlab(66.15, 41.35, -36.02)
CIE-LCHlch(66.15, 54.84, 318.94°)
OKLaboklab(72.49% 0.1073 -0.0992)
OKLCHoklch(72.49% 0.146 317.2)
XYZxyz(47.0181, 35.5167, 76.3154)
Luminance0.3552 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87E2 #9EE287
analogous
#9D87E2 #CB87E2 #E287CB
triadic
#CB87E2 #E2CB87 #87E2CB
tetradic
#CB87E2 #E29D87 #9EE287 #87CBE2
square
#CB87E2 #E29D87 #9EE287 #87CBE2
split-complementary
#CB87E2 #CBE287 #87E29D
monochromatic
#9B2EC0 #B656D6 #CB87E2 #E0B8EE #F4E6F9

Accessibility & contrast

On white

2.59
#CB87E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.10
#CB87E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87E2
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87E2#FFFFFF#000000##000000
##CB87E21.002.598.108.10
#FFFFFF2.591.0021.0021.00
#0000008.1021.001.001.00
##0000008.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#799CE5
Deuteranopia (green-blind)
#8AA3DF
Tritanopia (blue-blind)
#CB93AA
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #cb87e2;
/* rgb */ color: rgb(203, 135, 226);
/* oklch */ color: oklch(72.5% 0.146 317.2);
Tailwind
colors: {
  custom: {
    50: '#dcabeb',
    500: '#cb87e2',
    950: '#000000',
  },
}
SCSS
$custom: #cb87e2;
$custom-light: #dcabeb;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87e2",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 226
  },
  "hsl": {
    "h": 284.835,
    "s": 61.074,
    "l": 70.784
  },
  "oklch": {
    "l": 0.72493,
    "c": 0.14617,
    "h": 317.2
  },
  "luminance": 0.35515
}

Semantic roles & 50–950 ramp

primary
#CB87E2
secondary
#DCEFD6
accent
#C91D48
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CB87E2

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

Preview Lab → · Contrast checker → · Palette generator →

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