#BB87F1#BB87F1

#BB87F1 is a light, vivid violet. Relative luminance 0.342; OKLCH L 71.6% C 0.157 H 305.4°. Best body text is #000000 at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#BB87F1
RGBrgb(187, 135, 241)
HSLhsl(269, 79%, 74%)
HSVhsv(269, 44%, 95%)
CMYKcmyk(22.4%, 44%, 0%, 5.5%)
CIE-LABlab(65.16, 39.98, -45.98)
CIE-LCHlch(65.16, 60.93, 311.01°)
OKLaboklab(71.59% 0.0912 -0.1283)
OKLCHoklch(71.59% 0.157 305.4)
XYZxyz(45.0314, 34.2439, 87.4394)
Luminance0.3424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB87F1 #BDF187
analogous
#8788F1 #BB87F1 #F087F1
triadic
#BB87F1 #F1BB87 #87F1BB
tetradic
#BB87F1 #F18788 #BDF187 #87F1F0
square
#BB87F1 #F18788 #BDF187 #87F1F0
split-complementary
#BB87F1 #F1F087 #88F187
monochromatic
#7D1AE3 #9C50EB #BB87F1 #DABEF7 #EFE4FC

Accessibility & contrast

On white

2.68
#BB87F1 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.85
#BB87F1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB87F1
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB87F1#FFFFFF#000000##000000
##BB87F11.002.687.857.85
#FFFFFF2.681.0021.0021.00
#0000007.8521.001.001.00
##0000007.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9CF5
Deuteranopia (green-blind)
#799EEE
Tritanopia (blue-blind)
#B399B1
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #bb87f1;
/* rgb */ color: rgb(187, 135, 241);
/* oklch */ color: oklch(71.6% 0.157 305.4);
Tailwind
colors: {
  custom: {
    50: '#d1abf6',
    500: '#bb87f1',
    950: '#000000',
  },
}
SCSS
$custom: #bb87f1;
$custom-light: #d1abf6;
$custom-dark: #000000;
JSON
{
  "hex": "#bb87f1",
  "rgb": {
    "r": 187,
    "g": 135,
    "b": 241
  },
  "hsl": {
    "h": 269.434,
    "s": 79.104,
    "l": 73.725
  },
  "oklch": {
    "l": 0.71589,
    "c": 0.15739,
    "h": 305.4
  },
  "luminance": 0.34244
}

Semantic roles & 50–950 ramp

primary
#BB87F1
secondary
#E6F4D7
accent
#DB0A75
background
#FDFAFF
surface
#FAF4FE
border
#D3CED6
text
#141017
muted
#837F85

Preview Lab

Preview with #BB87F1

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

Preview Lab → · Contrast checker → · Palette generator →

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