#BB87F8#BB87F8

#BB87F8 is a light, vivid violet. Relative luminance 0.347; OKLCH L 72.0% C 0.166 H 303.8°. Best body text is #000000 at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#BB87F8
RGBrgb(187, 135, 248)
HSLhsl(268, 89%, 75%)
HSVhsv(268, 46%, 97%)
CMYKcmyk(24.6%, 45.6%, 0%, 2.7%)
CIE-LABlab(65.49, 41.58, -49.29)
CIE-LCHlch(65.49, 64.49, 310.15°)
OKLaboklab(71.95% 0.0922 -0.1379)
OKLCHoklch(71.95% 0.166 303.8)
XYZxyz(46.0971, 34.6702, 93.0523)
Luminance0.3467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB87F8 #C4F887
analogous
#878BF8 #BB87F8 #F487F8
triadic
#BB87F8 #F8BB87 #87F8BB
tetradic
#BB87F8 #F8878B #C4F887 #87F8F4
square
#BB87F8 #F8878B #C4F887 #87F8F4
split-complementary
#BB87F8 #F8F487 #8BF887
monochromatic
#7913F1 #9A4DF5 #BB87F8 #DCC1FB #EFE2FD

Accessibility & contrast

On white

2.65
#BB87F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.93
#BB87F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB87F8
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB87F8#FFFFFF#000000##000000
##BB87F81.002.657.937.93
#FFFFFF2.651.0021.0021.00
#0000007.9321.001.001.00
##0000007.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#689EFC
Deuteranopia (green-blind)
#759FF5
Tritanopia (blue-blind)
#B19AB4
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #bb87f8;
/* rgb */ color: rgb(187, 135, 248);
/* oklch */ color: oklch(72.0% 0.166 303.8);
Tailwind
colors: {
  custom: {
    50: '#d2abfb',
    500: '#bb87f8',
    950: '#000000',
  },
}
SCSS
$custom: #bb87f8;
$custom-light: #d2abfb;
$custom-dark: #000000;
JSON
{
  "hex": "#bb87f8",
  "rgb": {
    "r": 187,
    "g": 135,
    "b": 248
  },
  "hsl": {
    "h": 267.611,
    "s": 88.976,
    "l": 75.098
  },
  "oklch": {
    "l": 0.7195,
    "c": 0.16589,
    "h": 303.8
  },
  "luminance": 0.3467
}

Semantic roles & 50–950 ramp

primary
#BB87F8
secondary
#E7F5D6
accent
#E6007C
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #BB87F8

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

Preview Lab → · Contrast checker → · Palette generator →

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