#BB97EE#BB97EE

#BB97EE is a light, vivid violet. Relative luminance 0.389; OKLCH L 74.2% C 0.128 H 302.4°. Best body text is #000000 at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#BB97EE
RGBrgb(187, 151, 238)
HSLhsl(265, 72%, 76%)
HSVhsv(265, 37%, 93%)
CMYKcmyk(21.4%, 36.6%, 0%, 6.7%)
CIE-LABlab(68.66, 30.45, -38.84)
CIE-LCHlch(68.66, 49.36, 308.10°)
OKLaboklab(74.19% 0.0685 -0.1077)
OKLCHoklch(74.19% 0.128 302.4)
XYZxyz(46.9895, 38.8711, 85.8997)
Luminance0.3887 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB97EE #CAEE97
analogous
#979FEE #BB97EE #E797EE
triadic
#BB97EE #EEBB97 #97EEBB
tetradic
#BB97EE #EE979F #CAEE97 #97EEE7
square
#BB97EE #EE979F #CAEE97 #97EEE7
split-complementary
#BB97EE #EEE797 #9FEE97
monochromatic
#762EDD #9962E5 #BB97EE #DDCCF7 #EEE5FB

Accessibility & contrast

On white

2.39
#BB97EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.77
#BB97EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB97EE
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB97EE#FFFFFF#000000##000000
##BB97EE1.002.398.778.77
#FFFFFF2.391.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#83A7F1
Deuteranopia (green-blind)
#8AA7EC
Tritanopia (blue-blind)
#B2A5B7
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #bb97ee;
/* rgb */ color: rgb(187, 151, 238);
/* oklch */ color: oklch(74.2% 0.128 302.4);
Tailwind
colors: {
  custom: {
    50: '#d1b6f4',
    500: '#bb97ee',
    950: '#000000',
  },
}
SCSS
$custom: #bb97ee;
$custom-light: #d1b6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#bb97ee",
  "rgb": {
    "r": 187,
    "g": 151,
    "b": 238
  },
  "hsl": {
    "h": 264.828,
    "s": 71.901,
    "l": 76.275
  },
  "oklch": {
    "l": 0.7419,
    "c": 0.12764,
    "h": 302.4
  },
  "luminance": 0.38871
}

Semantic roles & 50–950 ramp

primary
#BB97EE
secondary
#E8F2D9
accent
#D41284
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #BB97EE

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

Preview Lab → · Contrast checker → · Palette generator →

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