#BB87E6#BB87E6

#BB87E6 is a light, vivid violet. Relative luminance 0.336; OKLCH L 71.0% C 0.144 H 308.3°. Best body text is #000000 at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#BB87E6
RGBrgb(187, 135, 230)
HSLhsl(273, 66%, 72%)
HSVhsv(273, 41%, 90%)
CMYKcmyk(18.7%, 41.3%, 0%, 9.8%)
CIE-LABlab(64.65, 37.51, -40.70)
CIE-LCHlch(64.65, 55.35, 312.66°)
OKLaboklab(71.04% 0.0894 -0.113)
OKLCHoklch(71.04% 0.144 308.3)
XYZxyz(43.4377, 33.6064, 79.0459)
Luminance0.3361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB87E6 #B2E687
analogous
#8C87E6 #BB87E6 #E687E2
triadic
#BB87E6 #E6BB87 #87E6BB
tetradic
#BB87E6 #E68C87 #B2E687 #87E2E6
square
#BB87E6 #E68C87 #B2E687 #87E2E6
split-complementary
#BB87E6 #E2E687 #87E68C
monochromatic
#812AC9 #9E54DB #BB87E6 #D8BAF1 #F1E6FA

Accessibility & contrast

On white

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

On black

7.72
#BB87E6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB87E6
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB87E6#FFFFFF#000000##000000
##BB87E61.002.727.727.72
#FFFFFF2.721.0021.0021.00
#0000007.7221.001.001.00
##0000007.7221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #bb87e6;
/* rgb */ color: rgb(187, 135, 230);
/* oklch */ color: oklch(71.0% 0.144 308.3);
Tailwind
colors: {
  custom: {
    50: '#d1abee',
    500: '#bb87e6',
    950: '#000000',
  },
}
SCSS
$custom: #bb87e6;
$custom-light: #d1abee;
$custom-dark: #000000;
JSON
{
  "hex": "#bb87e6",
  "rgb": {
    "r": 187,
    "g": 135,
    "b": 230
  },
  "hsl": {
    "h": 272.842,
    "s": 65.517,
    "l": 71.569
  },
  "oklch": {
    "l": 0.71042,
    "c": 0.14407,
    "h": 308.3
  },
  "luminance": 0.33606
}

Semantic roles & 50–950 ramp

primary
#BB87E6
secondary
#E3F1D8
accent
#CD186A
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#141016
muted
#837F84

Preview Lab

Preview with #BB87E6

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

Preview Lab → · Contrast checker → · Palette generator →

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