#BB87E2#BB87E2

#BB87E2 is a light, vivid violet. Relative luminance 0.334; OKLCH L 70.9% C 0.139 H 309.5°. Best body text is #000000 at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#BB87E2
RGBrgb(187, 135, 226)
HSLhsl(274, 61%, 71%)
HSVhsv(274, 40%, 89%)
CMYKcmyk(17.3%, 40.3%, 0%, 11.4%)
CIE-LABlab(64.47, 36.63, -38.76)
CIE-LCHlch(64.47, 53.33, 313.38°)
OKLaboklab(70.85% 0.0886 -0.1074)
OKLCHoklch(70.85% 0.139 309.5)
XYZxyz(42.8824, 33.3843, 76.1215)
Luminance0.3338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB87E2 #AEE287
analogous
#8D87E2 #BB87E2 #E287DB
triadic
#BB87E2 #E2BB87 #87E2BB
tetradic
#BB87E2 #E28D87 #AEE287 #87DBE2
square
#BB87E2 #E28D87 #AEE287 #87DBE2
split-complementary
#BB87E2 #DBE287 #87E28D
monochromatic
#822EC0 #9F56D6 #BB87E2 #D7B8EE #F1E6F9

Accessibility & contrast

On white

2.74
#BB87E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.68
#BB87E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB87E2
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB87E2#FFFFFF#000000##000000
##BB87E21.002.747.687.68
#FFFFFF2.741.0021.0021.00
#0000007.6821.001.001.00
##0000007.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#749AE5
Deuteranopia (green-blind)
#809DDF
Tritanopia (blue-blind)
#B695AA
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #bb87e2;
/* rgb */ color: rgb(187, 135, 226);
/* oklch */ color: oklch(70.9% 0.139 309.5);
Tailwind
colors: {
  custom: {
    50: '#d1abeb',
    500: '#bb87e2',
    950: '#000000',
  },
}
SCSS
$custom: #bb87e2;
$custom-light: #d1abeb;
$custom-dark: #000000;
JSON
{
  "hex": "#bb87e2",
  "rgb": {
    "r": 187,
    "g": 135,
    "b": 226
  },
  "hsl": {
    "h": 274.286,
    "s": 61.074,
    "l": 70.784
  },
  "oklch": {
    "l": 0.7085,
    "c": 0.13925,
    "h": 309.5
  },
  "luminance": 0.33384
}

Semantic roles & 50–950 ramp

primary
#BB87E2
secondary
#E1EFD6
accent
#C91D66
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141016
muted
#827F84

Preview Lab

Preview with #BB87E2

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

Preview Lab → · Contrast checker → · Palette generator →

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