#BB87F5#BB87F5

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

Color values

HEX#BB87F5
RGBrgb(187, 135, 245)
HSLhsl(268, 85%, 75%)
HSVhsv(268, 45%, 96%)
CMYKcmyk(23.7%, 44.9%, 0%, 3.9%)
CIE-LABlab(65.35, 40.89, -47.88)
CIE-LCHlch(65.35, 62.96, 310.50°)
OKLaboklab(71.79% 0.0918 -0.1338)
OKLCHoklch(71.79% 0.162 304.4)
XYZxyz(45.6354, 34.4855, 90.6207)
Luminance0.3448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB87F5 #C1F587
analogous
#878AF5 #BB87F5 #F287F5
triadic
#BB87F5 #F5BB87 #87F5BB
tetradic
#BB87F5 #F5878A #C1F587 #87F5F2
square
#BB87F5 #F5878A #C1F587 #87F5F2
split-complementary
#BB87F5 #F5F287 #8AF587
monochromatic
#7B16EC #9B4FF0 #BB87F5 #DBBFFA #EFE3FD

Accessibility & contrast

On white

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

On black

7.90
#BB87F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB87F5
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB87F5#FFFFFF#000000##000000
##BB87F51.002.667.907.90
#FFFFFF2.661.0021.0021.00
#0000007.9021.001.001.00
##0000007.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A9DF9
Deuteranopia (green-blind)
#779FF2
Tritanopia (blue-blind)
#B19AB2
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #bb87f5;
/* rgb */ color: rgb(187, 135, 245);
/* oklch */ color: oklch(71.8% 0.162 304.4);
Tailwind
colors: {
  custom: {
    50: '#d1abf9',
    500: '#bb87f5',
    950: '#000000',
  },
}
SCSS
$custom: #bb87f5;
$custom-light: #d1abf9;
$custom-dark: #000000;
JSON
{
  "hex": "#bb87f5",
  "rgb": {
    "r": 187,
    "g": 135,
    "b": 245
  },
  "hsl": {
    "h": 268.364,
    "s": 84.615,
    "l": 74.51
  },
  "oklch": {
    "l": 0.71794,
    "c": 0.16225,
    "h": 304.4
  },
  "luminance": 0.34485
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BB87F5

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

Preview Lab → · Contrast checker → · Palette generator →

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