#BB87FE#BB87FE

#BB87FE is a light, vivid violet. Relative luminance 0.350; OKLCH L 72.3% C 0.173 H 302.5°. Best body text is #000000 at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#BB87FE
RGBrgb(187, 135, 254)
HSLhsl(266, 98%, 76%)
HSVhsv(266, 47%, 100%)
CMYKcmyk(26.4%, 46.9%, 0%, 0.4%)
CIE-LABlab(65.79, 42.98, -52.11)
CIE-LCHlch(65.79, 67.55, 309.51°)
OKLaboklab(72.27% 0.0929 -0.1461)
OKLCHoklch(72.27% 0.173 302.5)
XYZxyz(47.0429, 35.0485, 98.0334)
Luminance0.3505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB87FE #CAFE87
analogous
#878FFE #BB87FE #F687FE
triadic
#BB87FE #FEBB87 #87FEBB
tetradic
#BB87FE #FE878F #CAFE87 #87FEF6
square
#BB87FE #FE878F #CAFE87 #87FEF6
split-complementary
#BB87FE #FEF687 #8FFE87
monochromatic
#760EFD #994AFD #BB87FE #DDC4FF #EEE1FF

Accessibility & contrast

On white

2.62
#BB87FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.01
#BB87FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB87FE
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB87FE#FFFFFF#000000##000000
##BB87FE1.002.628.018.01
#FFFFFF2.621.0021.0021.00
#0000008.0121.001.001.00
##0000008.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#649FFF
Deuteranopia (green-blind)
#719FFB
Tritanopia (blue-blind)
#AF9CB7
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #bb87fe;
/* rgb */ color: rgb(187, 135, 254);
/* oklch */ color: oklch(72.3% 0.173 302.5);
Tailwind
colors: {
  custom: {
    50: '#d2abff',
    500: '#bb87fe',
    950: '#000000',
  },
}
SCSS
$custom: #bb87fe;
$custom-light: #d2abff;
$custom-dark: #000000;
JSON
{
  "hex": "#bb87fe",
  "rgb": {
    "r": 187,
    "g": 135,
    "b": 254
  },
  "hsl": {
    "h": 266.218,
    "s": 98.347,
    "l": 76.275
  },
  "oklch": {
    "l": 0.72267,
    "c": 0.17318,
    "h": 302.5
  },
  "luminance": 0.35048
}

Semantic roles & 50–950 ramp

primary
#BB87FE
secondary
#E8F7D4
accent
#E60081
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #BB87FE

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

Preview Lab → · Contrast checker → · Palette generator →

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