#BB81EC#BB81EC

#BB81EC is a light, vivid violet. Relative luminance 0.323; OKLCH L 70.4% C 0.161 H 307.8°. Best body text is #000000 at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#BB81EC
RGBrgb(187, 129, 236)
HSLhsl(273, 74%, 72%)
HSVhsv(273, 45%, 93%)
CMYKcmyk(20.8%, 45.3%, 0%, 7.5%)
CIE-LABlab(63.61, 42.12, -45.66)
CIE-LCHlch(63.61, 62.12, 312.70°)
OKLaboklab(70.35% 0.0987 -0.1273)
OKLCHoklch(70.35% 0.161 307.8)
XYZxyz(43.4811, 32.3219, 83.2888)
Luminance0.3232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB81EC #B2EC81
analogous
#8681EC #BB81EC #EC81E8
triadic
#BB81EC #ECBB81 #81ECBB
tetradic
#BB81EC #EC8681 #B2EC81 #81E8EC
square
#BB81EC #EC8681 #B2EC81 #81E8EC
split-complementary
#BB81EC #E8EC81 #81EC86
monochromatic
#8120D3 #9E4CE4 #BB81EC #D8B6F4 #F1E4FB

Accessibility & contrast

On white

2.81
#BB81EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.46
#BB81EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB81EC
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB81EC#FFFFFF#000000##000000
##BB81EC1.002.817.467.46
#FFFFFF2.811.0021.0021.00
#0000007.4621.001.001.00
##0000007.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6798F0
Deuteranopia (green-blind)
#769BE9
Tritanopia (blue-blind)
#B492AB
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #bb81ec;
/* rgb */ color: rgb(187, 129, 236);
/* oklch */ color: oklch(70.4% 0.161 307.8);
Tailwind
colors: {
  custom: {
    50: '#d1a7f2',
    500: '#bb81ec',
    950: '#000000',
  },
}
SCSS
$custom: #bb81ec;
$custom-light: #d1a7f2;
$custom-dark: #000000;
JSON
{
  "hex": "#bb81ec",
  "rgb": {
    "r": 187,
    "g": 129,
    "b": 236
  },
  "hsl": {
    "h": 272.523,
    "s": 73.793,
    "l": 71.569
  },
  "oklch": {
    "l": 0.70352,
    "c": 0.16107,
    "h": 307.8
  },
  "luminance": 0.32321
}

Semantic roles & 50–950 ramp

primary
#BB81EC
secondary
#E3F2D7
accent
#D6106A
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BB81EC

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

Preview Lab → · Contrast checker → · Palette generator →

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