#BB87E4#BB87E4

#BB87E4 is a light, vivid violet. Relative luminance 0.335; OKLCH L 70.9% C 0.142 H 308.9°. Best body text is #000000 at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#BB87E4
RGBrgb(187, 135, 228)
HSLhsl(274, 63%, 71%)
HSVhsv(274, 41%, 89%)
CMYKcmyk(18%, 40.8%, 0%, 10.6%)
CIE-LABlab(64.56, 37.07, -39.73)
CIE-LCHlch(64.56, 54.34, 313.01°)
OKLaboklab(70.95% 0.089 -0.1102)
OKLCHoklch(70.95% 0.142 308.9)
XYZxyz(43.1585, 33.4947, 77.5753)
Luminance0.3349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB87E4 #B0E487
analogous
#8C87E4 #BB87E4 #E487DE
triadic
#BB87E4 #E4BB87 #87E4BB
tetradic
#BB87E4 #E48C87 #B0E487 #87DEE4
square
#BB87E4 #E48C87 #B0E487 #87DEE4
split-complementary
#BB87E4 #DEE487 #87E48C
monochromatic
#812CC4 #9F55D9 #BB87E4 #D7B9EF #F1E6F9

Accessibility & contrast

On white

2.73
#BB87E4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.70
#BB87E4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB87E4
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB87E4#FFFFFF#000000##000000
##BB87E41.002.737.707.70
#FFFFFF2.731.0021.0021.00
#0000007.7021.001.001.00
##0000007.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#739AE7
Deuteranopia (green-blind)
#809DE1
Tritanopia (blue-blind)
#B695AB
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #bb87e4;
/* rgb */ color: rgb(187, 135, 228);
/* oklch */ color: oklch(70.9% 0.142 308.9);
Tailwind
colors: {
  custom: {
    50: '#d1abed',
    500: '#bb87e4',
    950: '#000000',
  },
}
SCSS
$custom: #bb87e4;
$custom-light: #d1abed;
$custom-dark: #000000;
JSON
{
  "hex": "#bb87e4",
  "rgb": {
    "r": 187,
    "g": 135,
    "b": 228
  },
  "hsl": {
    "h": 273.548,
    "s": 63.265,
    "l": 71.176
  },
  "oklch": {
    "l": 0.70945,
    "c": 0.14166,
    "h": 308.9
  },
  "luminance": 0.33494
}

Semantic roles & 50–950 ramp

primary
#BB87E4
secondary
#E2F0D7
accent
#CB1A68
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#141016
muted
#837F84

Preview Lab

Preview with #BB87E4

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

Preview Lab → · Contrast checker → · Palette generator →

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