#BB87FB#BB87FB

#BB87FB is a light, vivid violet. Relative luminance 0.349; OKLCH L 72.1% C 0.170 H 303.1°. Best body text is #000000 at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#BB87FB
RGBrgb(187, 135, 251)
HSLhsl(267, 94%, 76%)
HSVhsv(267, 46%, 98%)
CMYKcmyk(25.5%, 46.2%, 0%, 1.6%)
CIE-LABlab(65.64, 42.28, -50.71)
CIE-LCHlch(65.64, 66.02, 309.82°)
OKLaboklab(72.11% 0.0926 -0.142)
OKLCHoklch(72.11% 0.17 303.1)
XYZxyz(46.5663, 34.8578, 95.5231)
Luminance0.3486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB87FB #C7FB87
analogous
#878DFB #BB87FB #F587FB
triadic
#BB87FB #FBBB87 #87FBBB
tetradic
#BB87FB #FB878D #C7FB87 #87FBF5
square
#BB87FB #FB878D #C7FB87 #87FBF5
split-complementary
#BB87FB #FBF587 #8DFB87
monochromatic
#7811F7 #994CF9 #BB87FB #DDC2FD #EEE1FE

Accessibility & contrast

On white

2.63
#BB87FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.97
#BB87FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB87FB
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB87FB#FFFFFF#000000##000000
##BB87FB1.002.637.977.97
#FFFFFF2.631.0021.0021.00
#0000007.9721.001.001.00
##0000007.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#669EFF
Deuteranopia (green-blind)
#739FF8
Tritanopia (blue-blind)
#B09BB5
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #bb87fb;
/* rgb */ color: rgb(187, 135, 251);
/* oklch */ color: oklch(72.1% 0.170 303.1);
Tailwind
colors: {
  custom: {
    50: '#d2abfd',
    500: '#bb87fb',
    950: '#000000',
  },
}
SCSS
$custom: #bb87fb;
$custom-light: #d2abfd;
$custom-dark: #000000;
JSON
{
  "hex": "#bb87fb",
  "rgb": {
    "r": 187,
    "g": 135,
    "b": 251
  },
  "hsl": {
    "h": 266.897,
    "s": 93.548,
    "l": 75.686
  },
  "oklch": {
    "l": 0.72107,
    "c": 0.16953,
    "h": 303.1
  },
  "luminance": 0.34858
}

Semantic roles & 50–950 ramp

primary
#BB87FB
secondary
#E7F6D5
accent
#E6007F
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #BB87FB

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

Preview Lab → · Contrast checker → · Palette generator →

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