#BB87E5#BB87E5

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

Color values

HEX#BB87E5
RGBrgb(187, 135, 229)
HSLhsl(273, 64%, 71%)
HSVhsv(273, 41%, 90%)
CMYKcmyk(18.3%, 41%, 0%, 10.2%)
CIE-LABlab(64.60, 37.29, -40.22)
CIE-LCHlch(64.60, 54.84, 312.84°)
OKLaboklab(70.99% 0.0892 -0.1116)
OKLCHoklch(70.99% 0.143 308.6)
XYZxyz(43.2977, 33.5504, 78.3085)
Luminance0.3355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB87E5 #B1E587
analogous
#8C87E5 #BB87E5 #E587E0
triadic
#BB87E5 #E5BB87 #87E5BB
tetradic
#BB87E5 #E58C87 #B1E587 #87E0E5
square
#BB87E5 #E58C87 #B1E587 #87E0E5
split-complementary
#BB87E5 #E0E587 #87E58C
monochromatic
#812BC7 #9E55DA #BB87E5 #D8B9F0 #F1E6FA

Accessibility & contrast

On white

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

On black

7.71
#BB87E5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB87E5
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB87E5#FFFFFF#000000##000000
##BB87E51.002.727.717.71
#FFFFFF2.721.0021.0021.00
#0000007.7121.001.001.00
##0000007.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#739AE8
Deuteranopia (green-blind)
#7F9DE2
Tritanopia (blue-blind)
#B695AB
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #bb87e5;
/* rgb */ color: rgb(187, 135, 229);
/* oklch */ color: oklch(71.0% 0.143 308.6);
Tailwind
colors: {
  custom: {
    50: '#d1abed',
    500: '#bb87e5',
    950: '#000000',
  },
}
SCSS
$custom: #bb87e5;
$custom-light: #d1abed;
$custom-dark: #000000;
JSON
{
  "hex": "#bb87e5",
  "rgb": {
    "r": 187,
    "g": 135,
    "b": 229
  },
  "hsl": {
    "h": 273.191,
    "s": 64.384,
    "l": 71.373
  },
  "oklch": {
    "l": 0.70994,
    "c": 0.14286,
    "h": 308.6
  },
  "luminance": 0.3355
}

Semantic roles & 50–950 ramp

primary
#BB87E5
secondary
#E3F0D8
accent
#CC1969
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#141016
muted
#837F84

Preview Lab

Preview with #BB87E5

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

Preview Lab → · Contrast checker → · Palette generator →

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