#BB97FB#BB97FB

#BB97FB is a light, vivid violet. Relative luminance 0.397; OKLCH L 74.8% C 0.144 H 299.5°. Best body text is #000000 at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#BB97FB
RGBrgb(187, 151, 251)
HSLhsl(262, 93%, 79%)
HSVhsv(262, 40%, 98%)
CMYKcmyk(25.5%, 39.8%, 0%, 1.6%)
CIE-LABlab(69.23, 33.47, -45.05)
CIE-LCHlch(69.23, 56.12, 306.61°)
OKLaboklab(74.81% 0.0711 -0.1256)
OKLCHoklch(74.81% 0.144 299.5)
XYZxyz(48.9687, 39.6628, 96.3239)
Luminance0.3966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB97FB #D7FB97
analogous
#97A5FB #BB97FB #ED97FB
triadic
#BB97FB #FBBB97 #97FBBB
tetradic
#BB97FB #FB97A5 #D7FB97 #97FBED
square
#BB97FB #FB97A5 #D7FB97 #97FBED
split-complementary
#BB97FB #FBED97 #A5FB97
monochromatic
#6E21F6 #945CF9 #BB97FB #E2D2FD #ECE2FE

Accessibility & contrast

On white

2.35
#BB97FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.93
#BB97FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB97FB
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB97FB#FFFFFF#000000##000000
##BB97FB1.002.358.938.93
#FFFFFF2.351.0021.0021.00
#0000008.9321.001.001.00
##0000008.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7DA9FF
Deuteranopia (green-blind)
#84A8F8
Tritanopia (blue-blind)
#AFA8BD
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #bb97fb;
/* rgb */ color: rgb(187, 151, 251);
/* oklch */ color: oklch(74.8% 0.144 299.5);
Tailwind
colors: {
  custom: {
    50: '#d1b6fd',
    500: '#bb97fb',
    950: '#000000',
  },
}
SCSS
$custom: #bb97fb;
$custom-light: #d1b6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#bb97fb",
  "rgb": {
    "r": 187,
    "g": 151,
    "b": 251
  },
  "hsl": {
    "h": 261.6,
    "s": 92.593,
    "l": 78.824
  },
  "oklch": {
    "l": 0.74811,
    "c": 0.14435,
    "h": 299.5
  },
  "luminance": 0.39663
}

Semantic roles & 50–950 ramp

primary
#BB97FB
secondary
#EAF6D5
accent
#E60093
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141117
muted
#838085

Preview Lab

Preview with #BB97FB

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

Preview Lab → · Contrast checker → · Palette generator →

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