#BB97EB#BB97EB

#BB97EB is a light, vivid violet. Relative luminance 0.387; OKLCH L 74.1% C 0.124 H 303.2°. Best body text is #000000 at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#BB97EB
RGBrgb(187, 151, 235)
HSLhsl(266, 68%, 76%)
HSVhsv(266, 36%, 92%)
CMYKcmyk(20.4%, 35.7%, 0%, 7.8%)
CIE-LABlab(68.53, 29.77, -37.39)
CIE-LCHlch(68.53, 47.80, 308.53°)
OKLaboklab(74.05% 0.0678 -0.1036)
OKLCHoklch(74.05% 0.124 303.2)
XYZxyz(46.5524, 38.6962, 83.5978)
Luminance0.3870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB97EB #C7EB97
analogous
#979DEB #BB97EB #E597EB
triadic
#BB97EB #EBBB97 #97EBBB
tetradic
#BB97EB #EB979D #C7EB97 #97EBE5
square
#BB97EB #EB979D #C7EB97 #97EBE5
split-complementary
#BB97EB #EBE597 #9DEB97
monochromatic
#7830D7 #9964E1 #BB97EB #DDCAF5 #EEE5FA

Accessibility & contrast

On white

2.40
#BB97EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.74
#BB97EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB97EB
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB97EB#FFFFFF#000000##000000
##BB97EB1.002.408.748.74
#FFFFFF2.401.0021.0021.00
#0000008.7421.001.001.00
##0000008.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#84A6EE
Deuteranopia (green-blind)
#8BA7E9
Tritanopia (blue-blind)
#B3A4B6
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #bb97eb;
/* rgb */ color: rgb(187, 151, 235);
/* oklch */ color: oklch(74.1% 0.124 303.2);
Tailwind
colors: {
  custom: {
    50: '#d0b6f1',
    500: '#bb97eb',
    950: '#000000',
  },
}
SCSS
$custom: #bb97eb;
$custom-light: #d0b6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#bb97eb",
  "rgb": {
    "r": 187,
    "g": 151,
    "b": 235
  },
  "hsl": {
    "h": 265.714,
    "s": 67.742,
    "l": 75.686
  },
  "oklch": {
    "l": 0.74052,
    "c": 0.12379,
    "h": 303.2
  },
  "luminance": 0.38696
}

Semantic roles & 50–950 ramp

primary
#BB97EB
secondary
#E7F2D9
accent
#D01680
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #BB97EB

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

Preview Lab → · Contrast checker → · Palette generator →

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