#BB87EC#BB87EC

#BB87EC is a light, vivid violet. Relative luminance 0.339; OKLCH L 71.3% C 0.151 H 306.7°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#BB87EC
RGBrgb(187, 135, 236)
HSLhsl(271, 73%, 73%)
HSVhsv(271, 43%, 93%)
CMYKcmyk(20.8%, 42.8%, 0%, 7.5%)
CIE-LABlab(64.92, 38.85, -43.59)
CIE-LCHlch(64.92, 58.39, 311.71°)
OKLaboklab(71.34% 0.0904 -0.1214)
OKLCHoklch(71.34% 0.151 306.7)
XYZxyz(44.2948, 33.9492, 83.5600)
Luminance0.3395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB87EC #B8EC87
analogous
#8887EC #BB87EC #EC87EB
triadic
#BB87EC #ECBB87 #87ECBB
tetradic
#BB87EC #EC8887 #B8EC87 #87EBEC
square
#BB87EC #EC8887 #B8EC87 #87EBEC
split-complementary
#BB87EC #EBEC87 #87EC88
monochromatic
#7F22D7 #9D52E4 #BB87EC #D9BCF4 #F0E5FB

Accessibility & contrast

On white

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

On black

7.79
#BB87EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB87EC
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB87EC#FFFFFF#000000##000000
##BB87EC1.002.707.797.79
#FFFFFF2.701.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F9CF0
Deuteranopia (green-blind)
#7C9EE9
Tritanopia (blue-blind)
#B497AE
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #bb87ec;
/* rgb */ color: rgb(187, 135, 236);
/* oklch */ color: oklch(71.3% 0.151 306.7);
Tailwind
colors: {
  custom: {
    50: '#d1abf2',
    500: '#bb87ec',
    950: '#000000',
  },
}
SCSS
$custom: #bb87ec;
$custom-light: #d1abf2;
$custom-dark: #000000;
JSON
{
  "hex": "#bb87ec",
  "rgb": {
    "r": 187,
    "g": 135,
    "b": 236
  },
  "hsl": {
    "h": 270.891,
    "s": 72.662,
    "l": 72.745
  },
  "oklch": {
    "l": 0.71337,
    "c": 0.15133,
    "h": 306.7
  },
  "luminance": 0.33949
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BB87EC

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

Preview Lab → · Contrast checker → · Palette generator →

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