#BB87F6#BB87F6

#BB87F6 is a light, vivid violet. Relative luminance 0.345; OKLCH L 71.8% C 0.163 H 304.2°. Best body text is #000000 at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#BB87F6
RGBrgb(187, 135, 246)
HSLhsl(268, 86%, 75%)
HSVhsv(268, 45%, 96%)
CMYKcmyk(24%, 45.1%, 0%, 3.5%)
CIE-LABlab(65.39, 41.12, -48.35)
CIE-LCHlch(65.39, 63.47, 310.38°)
OKLaboklab(71.85% 0.0919 -0.1352)
OKLCHoklch(71.85% 0.163 304.2)
XYZxyz(45.7885, 34.5467, 91.4269)
Luminance0.3455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB87F6 #C2F687
analogous
#878BF6 #BB87F6 #F387F6
triadic
#BB87F6 #F6BB87 #87F6BB
tetradic
#BB87F6 #F6878B #C2F687 #87F6F3
square
#BB87F6 #F6878B #C2F687 #87F6F3
split-complementary
#BB87F6 #F6F387 #8BF687
monochromatic
#7A15ED #9B4EF2 #BB87F6 #DBC0FA #EFE3FD

Accessibility & contrast

On white

2.66
#BB87F6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.91
#BB87F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB87F6
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB87F6#FFFFFF#000000##000000
##BB87F61.002.667.917.91
#FFFFFF2.661.0021.0021.00
#0000007.9121.001.001.00
##0000007.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#699DFA
Deuteranopia (green-blind)
#769FF3
Tritanopia (blue-blind)
#B19AB3
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #bb87f6;
/* rgb */ color: rgb(187, 135, 246);
/* oklch */ color: oklch(71.8% 0.163 304.2);
Tailwind
colors: {
  custom: {
    50: '#d1abf9',
    500: '#bb87f6',
    950: '#000000',
  },
}
SCSS
$custom: #bb87f6;
$custom-light: #d1abf9;
$custom-dark: #000000;
JSON
{
  "hex": "#bb87f6",
  "rgb": {
    "r": 187,
    "g": 135,
    "b": 246
  },
  "hsl": {
    "h": 268.108,
    "s": 86.047,
    "l": 74.706
  },
  "oklch": {
    "l": 0.71846,
    "c": 0.16347,
    "h": 304.2
  },
  "luminance": 0.34547
}

Semantic roles & 50–950 ramp

primary
#BB87F6
secondary
#E6F5D6
accent
#E3037A
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #BB87F6

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

Preview Lab → · Contrast checker → · Palette generator →

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