#BB87E7#BB87E7

#BB87E7 is a light, vivid violet. Relative luminance 0.337; OKLCH L 71.1% C 0.145 H 308.0°. Best body text is #000000 at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#BB87E7
RGBrgb(187, 135, 231)
HSLhsl(273, 67%, 72%)
HSVhsv(273, 42%, 91%)
CMYKcmyk(19%, 41.6%, 0%, 9.4%)
CIE-LABlab(64.69, 37.73, -41.18)
CIE-LCHlch(64.69, 55.85, 312.50°)
OKLaboklab(71.09% 0.0895 -0.1144)
OKLCHoklch(71.09% 0.145 308)
XYZxyz(43.5785, 33.6627, 79.7876)
Luminance0.3366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB87E7 #B3E787
analogous
#8B87E7 #BB87E7 #E787E3
triadic
#BB87E7 #E7BB87 #87E7BB
tetradic
#BB87E7 #E78B87 #B3E787 #87E3E7
square
#BB87E7 #E78B87 #B3E787 #87E3E7
split-complementary
#BB87E7 #E3E787 #87E78B
monochromatic
#8129CB #9E54DD #BB87E7 #D8BAF1 #F1E5FA

Accessibility & contrast

On white

2.72
#BB87E7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.73
#BB87E7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB87E7
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB87E7#FFFFFF#000000##000000
##BB87E71.002.727.737.73
#FFFFFF2.721.0021.0021.00
#0000007.7321.001.001.00
##0000007.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#729BEB
Deuteranopia (green-blind)
#7E9EE4
Tritanopia (blue-blind)
#B596AC
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #bb87e7;
/* rgb */ color: rgb(187, 135, 231);
/* oklch */ color: oklch(71.1% 0.145 308.0);
Tailwind
colors: {
  custom: {
    50: '#d1abef',
    500: '#bb87e7',
    950: '#000000',
  },
}
SCSS
$custom: #bb87e7;
$custom-light: #d1abef;
$custom-dark: #000000;
JSON
{
  "hex": "#bb87e7",
  "rgb": {
    "r": 187,
    "g": 135,
    "b": 231
  },
  "hsl": {
    "h": 272.5,
    "s": 66.667,
    "l": 71.765
  },
  "oklch": {
    "l": 0.71091,
    "c": 0.14528,
    "h": 308
  },
  "luminance": 0.33662
}

Semantic roles & 50–950 ramp

primary
#BB87E7
secondary
#E4F1D9
accent
#CF176B
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#141016
muted
#837F84

Preview Lab

Preview with #BB87E7

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

Preview Lab → · Contrast checker → · Palette generator →

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