#BB8AFC#BB8AFC

#BB8AFC is a light, vivid violet. Relative luminance 0.358; OKLCH L 72.7% C 0.166 H 302.3°. Best body text is #000000 at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#BB8AFC
RGBrgb(187, 138, 252)
HSLhsl(266, 95%, 76%)
HSVhsv(266, 45%, 99%)
CMYKcmyk(25.8%, 45.2%, 0%, 1.2%)
CIE-LABlab(66.34, 40.87, -50.14)
CIE-LCHlch(66.34, 64.69, 309.19°)
OKLaboklab(72.65% 0.0887 -0.1404)
OKLCHoklch(72.65% 0.166 302.3)
XYZxyz(47.1488, 35.7700, 96.4970)
Luminance0.3577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB8AFC #CBFC8A
analogous
#8A92FC #BB8AFC #F48AFC
triadic
#BB8AFC #FCBB8A #8AFCBB
tetradic
#BB8AFC #FC8A92 #CBFC8A #8AFCF4
square
#BB8AFC #FC8A92 #CBFC8A #8AFCF4
split-complementary
#BB8AFC #FCF48A #92FC8A
monochromatic
#7613F9 #984EFA #BB8AFC #DEC6FE #EEE1FE

Accessibility & contrast

On white

2.58
#BB8AFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.15
#BB8AFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB8AFC
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB8AFC#FFFFFF#000000##000000
##BB8AFC1.002.588.158.15
#FFFFFF2.581.0021.0021.00
#0000008.1521.001.001.00
##0000008.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6AA0FF
Deuteranopia (green-blind)
#75A1F9
Tritanopia (blue-blind)
#AF9EB7
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #bb8afc;
/* rgb */ color: rgb(187, 138, 252);
/* oklch */ color: oklch(72.7% 0.166 302.3);
Tailwind
colors: {
  custom: {
    50: '#d2adfe',
    500: '#bb8afc',
    950: '#000000',
  },
}
SCSS
$custom: #bb8afc;
$custom-light: #d2adfe;
$custom-dark: #000000;
JSON
{
  "hex": "#bb8afc",
  "rgb": {
    "r": 187,
    "g": 138,
    "b": 252
  },
  "hsl": {
    "h": 265.789,
    "s": 95,
    "l": 76.471
  },
  "oklch": {
    "l": 0.72652,
    "c": 0.16607,
    "h": 302.3
  },
  "luminance": 0.3577
}

Semantic roles & 50–950 ramp

primary
#BB8AFC
secondary
#E8F6D5
accent
#E60083
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #BB8AFC

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

Preview Lab → · Contrast checker → · Palette generator →

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