#BB87EA#BB87EA

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

Color values

HEX#BB87EA
RGBrgb(187, 135, 234)
HSLhsl(272, 70%, 72%)
HSVhsv(272, 42%, 92%)
CMYKcmyk(20.1%, 42.3%, 0%, 8.2%)
CIE-LABlab(64.83, 38.40, -42.63)
CIE-LCHlch(64.83, 57.37, 312.01°)
OKLaboklab(71.24% 0.0901 -0.1186)
OKLCHoklch(71.24% 0.149 307.2)
XYZxyz(44.0059, 33.8337, 82.0382)
Luminance0.3383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB87EA #B6EA87
analogous
#8987EA #BB87EA #EA87E8
triadic
#BB87EA #EABB87 #87EABB
tetradic
#BB87EA #EA8987 #B6EA87 #87E8EA
square
#BB87EA #EA8987 #B6EA87 #87E8EA
split-complementary
#BB87EA #E8EA87 #87EA89
monochromatic
#8025D2 #9D53E1 #BB87EA #D9BBF3 #F0E5FA

Accessibility & contrast

On white

2.70
#BB87EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.77
#BB87EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB87EA
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB87EA#FFFFFF#000000##000000
##BB87EA1.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#709BEE
Deuteranopia (green-blind)
#7D9EE7
Tritanopia (blue-blind)
#B497AD
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #bb87ea;
/* rgb */ color: rgb(187, 135, 234);
/* oklch */ color: oklch(71.2% 0.149 307.2);
Tailwind
colors: {
  custom: {
    50: '#d1abf1',
    500: '#bb87ea',
    950: '#000000',
  },
}
SCSS
$custom: #bb87ea;
$custom-light: #d1abf1;
$custom-dark: #000000;
JSON
{
  "hex": "#bb87ea",
  "rgb": {
    "r": 187,
    "g": 135,
    "b": 234
  },
  "hsl": {
    "h": 271.515,
    "s": 70.213,
    "l": 72.353
  },
  "oklch": {
    "l": 0.71238,
    "c": 0.1489,
    "h": 307.2
  },
  "luminance": 0.33833
}

Semantic roles & 50–950 ramp

primary
#BB87EA
secondary
#E5F2D9
accent
#D2136E
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#141017
muted
#837F85

Preview Lab

Preview with #BB87EA

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

Preview Lab → · Contrast checker → · Palette generator →

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