#BB97FE#BB97FE

#BB97FE is a light, vivid violet. Relative luminance 0.399; OKLCH L 75.0% C 0.148 H 298.9°. Best body text is #000000 at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#BB97FE
RGBrgb(187, 151, 254)
HSLhsl(261, 98%, 79%)
HSVhsv(261, 41%, 100%)
CMYKcmyk(26.4%, 40.6%, 0%, 0.4%)
CIE-LABlab(69.36, 34.18, -46.47)
CIE-LCHlch(69.36, 57.68, 306.33°)
OKLaboklab(74.96% 0.0716 -0.1297)
OKLCHoklch(74.96% 0.148 298.9)
XYZxyz(49.4454, 39.8534, 98.8342)
Luminance0.3985 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB97FE #DAFE97
analogous
#97A7FE #BB97FE #EF97FE
triadic
#BB97FE #FEBB97 #97FEBB
tetradic
#BB97FE #FE97A7 #DAFE97 #97FEEF
square
#BB97FE #FE97A7 #DAFE97 #97FEEF
split-complementary
#BB97FE #FEEF97 #A7FE97
monochromatic
#6C1EFD #935AFD #BB97FE #E3D4FF #EBE1FF

Accessibility & contrast

On white

2.34
#BB97FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.97
#BB97FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB97FE
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB97FE#FFFFFF#000000##000000
##BB97FE1.002.348.978.97
#FFFFFF2.341.0021.0021.00
#0000008.9721.001.001.00
##0000008.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BA9FF
Deuteranopia (green-blind)
#82A9FB
Tritanopia (blue-blind)
#AEA9BE
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #bb97fe;
/* rgb */ color: rgb(187, 151, 254);
/* oklch */ color: oklch(75.0% 0.148 298.9);
Tailwind
colors: {
  custom: {
    50: '#d1b6ff',
    500: '#bb97fe',
    950: '#000000',
  },
}
SCSS
$custom: #bb97fe;
$custom-light: #d1b6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#bb97fe",
  "rgb": {
    "r": 187,
    "g": 151,
    "b": 254
  },
  "hsl": {
    "h": 260.971,
    "s": 98.095,
    "l": 79.412
  },
  "oklch": {
    "l": 0.74958,
    "c": 0.1482,
    "h": 298.9
  },
  "luminance": 0.39854
}

Semantic roles & 50–950 ramp

primary
#BB97FE
secondary
#EBF7D4
accent
#E60095
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141118
muted
#838086

Preview Lab

Preview with #BB97FE

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

Preview Lab → · Contrast checker → · Palette generator →

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