#BB87D9#BB87D9

#BB87D9 is a light, vivid violet. Relative luminance 0.329; OKLCH L 70.4% C 0.129 H 312.5°. Best body text is #000000 at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#BB87D9
RGBrgb(187, 135, 217)
HSLhsl(278, 52%, 69%)
HSVhsv(278, 38%, 85%)
CMYKcmyk(13.8%, 37.8%, 0%, 14.9%)
CIE-LABlab(64.08, 34.68, -34.37)
CIE-LCHlch(64.08, 48.83, 315.26°)
OKLaboklab(70.43% 0.0868 -0.0948)
OKLCHoklch(70.43% 0.129 312.5)
XYZxyz(41.6798, 32.9032, 69.7875)
Luminance0.3290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB87D9 #A5D987
analogous
#9287D9 #BB87D9 #D987CE
triadic
#BB87D9 #D9BB87 #87D9BB
tetradic
#BB87D9 #D99287 #A5D987 #87CED9
square
#BB87D9 #D99287 #A5D987 #87CED9
split-complementary
#BB87D9 #CED987 #87D992
monochromatic
#8337AE #A159CA #BB87D9 #D5B5E8 #F0E4F6

Accessibility & contrast

On white

2.77
#BB87D9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.58
#BB87D9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB87D9
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB87D9#FFFFFF#000000##000000
##BB87D91.002.777.587.58
#FFFFFF2.771.0021.0021.00
#0000007.5821.001.001.00
##0000007.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7898DC
Deuteranopia (green-blind)
#859DD7
Tritanopia (blue-blind)
#B892A6
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #bb87d9;
/* rgb */ color: rgb(187, 135, 217);
/* oklch */ color: oklch(70.4% 0.129 312.5);
Tailwind
colors: {
  custom: {
    50: '#d0abe5',
    500: '#bb87d9',
    950: '#000000',
  },
}
SCSS
$custom: #bb87d9;
$custom-light: #d0abe5;
$custom-dark: #000000;
JSON
{
  "hex": "#bb87d9",
  "rgb": {
    "r": 187,
    "g": 135,
    "b": 217
  },
  "hsl": {
    "h": 278.049,
    "s": 51.899,
    "l": 69.02
  },
  "oklch": {
    "l": 0.70429,
    "c": 0.12851,
    "h": 312.5
  },
  "luminance": 0.32902
}

Semantic roles & 50–950 ramp

primary
#BB87D9
secondary
#DBEAD2
accent
#BF265E
background
#FCFAFE
surface
#F9F4FC
border
#D2CED5
text
#141015
muted
#827F84

Preview Lab

Preview with #BB87D9

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

Preview Lab → · Contrast checker → · Palette generator →

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