#CB87CB#CB87CB

#CB87CB is a light, vivid purple. Relative luminance 0.343; OKLCH L 71.5% C 0.122 H 326.8°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#CB87CB
RGBrgb(203, 135, 203)
HSLhsl(300, 40%, 66%)
HSVhsv(300, 33%, 80%)
CMYKcmyk(0%, 33.5%, 0%, 20.4%)
CIE-LABlab(65.23, 36.87, -24.64)
CIE-LCHlch(65.23, 44.34, 326.25°)
OKLaboklab(71.5% 0.1021 -0.0669)
OKLCHoklch(71.5% 0.122 326.8)
XYZxyz(44.0711, 34.3380, 60.7948)
Luminance0.3434 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87CB #87CB87
analogous
#A987CB #CB87CB #CB87A9
triadic
#CB87CB #CBCB87 #87CBCB
tetradic
#CB87CB #CBA987 #87CB87 #87A9CB
square
#CB87CB #CBA987 #87CB87 #87A9CB
split-complementary
#CB87CB #A9CB87 #87CBA9
monochromatic
#964196 #B85CB8 #CB87CB #DEB2DE #F0DCF0

Accessibility & contrast

On white

2.67
#CB87CB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.87
#CB87CB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87CB
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87CB#FFFFFF#000000##000000
##CB87CB1.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8299CE
Deuteranopia (green-blind)
#93A1C9
Tritanopia (blue-blind)
#CF8DA0
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cb87cb;
/* rgb */ color: rgb(203, 135, 203);
/* oklch */ color: oklch(71.5% 0.122 326.8);
Tailwind
colors: {
  custom: {
    50: '#dcabdb',
    500: '#cb87cb',
    950: '#000000',
  },
}
SCSS
$custom: #cb87cb;
$custom-light: #dcabdb;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87cb",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 203
  },
  "hsl": {
    "h": 300,
    "s": 39.535,
    "l": 66.275
  },
  "oklch": {
    "l": 0.71497,
    "c": 0.12201,
    "h": 326.8
  },
  "luminance": 0.34336
}

Semantic roles & 50–950 ramp

primary
#CB87CB
secondary
#CCE2CC
accent
#B33333
background
#FDFAFD
surface
#FBF4FB
border
#D4CED4
text
#151015
muted
#837F83

Preview Lab

Preview with #CB87CB

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

Preview Lab → · Contrast checker → · Palette generator →

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