#BB87E9#BB87E9

#BB87E9 is a light, vivid violet. Relative luminance 0.338; OKLCH L 71.2% C 0.148 H 307.5°. Best body text is #000000 at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#BB87E9
RGBrgb(187, 135, 233)
HSLhsl(272, 69%, 72%)
HSVhsv(272, 42%, 91%)
CMYKcmyk(19.7%, 42.1%, 0%, 8.6%)
CIE-LABlab(64.78, 38.18, -42.15)
CIE-LCHlch(64.78, 56.87, 312.17°)
OKLaboklab(71.19% 0.0899 -0.1172)
OKLCHoklch(71.19% 0.148 307.5)
XYZxyz(43.8626, 33.7764, 81.2838)
Luminance0.3378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB87E9 #B5E987
analogous
#8A87E9 #BB87E9 #E987E6
triadic
#BB87E9 #E9BB87 #87E9BB
tetradic
#BB87E9 #E98A87 #B5E987 #87E6E9
square
#BB87E9 #E98A87 #B5E987 #87E6E9
split-complementary
#BB87E9 #E6E987 #87E98A
monochromatic
#8026D0 #9E53E0 #BB87E9 #D8BBF2 #F0E5FA

Accessibility & contrast

On white

2.71
#BB87E9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.76
#BB87E9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB87E9
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB87E9#FFFFFF#000000##000000
##BB87E91.002.717.767.76
#FFFFFF2.711.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#719BED
Deuteranopia (green-blind)
#7D9EE6
Tritanopia (blue-blind)
#B596AD
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #bb87e9;
/* rgb */ color: rgb(187, 135, 233);
/* oklch */ color: oklch(71.2% 0.148 307.5);
Tailwind
colors: {
  custom: {
    50: '#d1abf0',
    500: '#bb87e9',
    950: '#000000',
  },
}
SCSS
$custom: #bb87e9;
$custom-light: #d1abf0;
$custom-dark: #000000;
JSON
{
  "hex": "#bb87e9",
  "rgb": {
    "r": 187,
    "g": 135,
    "b": 233
  },
  "hsl": {
    "h": 271.837,
    "s": 69.014,
    "l": 72.157
  },
  "oklch": {
    "l": 0.71189,
    "c": 0.1477,
    "h": 307.5
  },
  "luminance": 0.33776
}

Semantic roles & 50–950 ramp

primary
#BB87E9
secondary
#E5F2D9
accent
#D1156D
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#141016
muted
#837F84

Preview Lab

Preview with #BB87E9

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

Preview Lab → · Contrast checker → · Palette generator →

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