#BB97FC#BB97FC

#BB97FC is a light, vivid violet. Relative luminance 0.397; OKLCH L 74.9% C 0.146 H 299.3°. Best body text is #000000 at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#BB97FC
RGBrgb(187, 151, 252)
HSLhsl(261, 94%, 79%)
HSVhsv(261, 40%, 99%)
CMYKcmyk(25.8%, 40.1%, 0%, 1.2%)
CIE-LABlab(69.27, 33.70, -45.52)
CIE-LCHlch(69.27, 56.64, 306.52°)
OKLaboklab(74.86% 0.0712 -0.127)
OKLCHoklch(74.86% 0.146 299.3)
XYZxyz(49.1268, 39.7260, 97.1563)
Luminance0.3973 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB97FC #D8FC97
analogous
#97A6FC #BB97FC #EE97FC
triadic
#BB97FC #FCBB97 #97FCBB
tetradic
#BB97FC #FC97A6 #D8FC97 #97FCEE
square
#BB97FC #FC97A6 #D8FC97 #97FCEE
split-complementary
#BB97FC #FCEE97 #A6FC97
monochromatic
#6D20F9 #945CFA #BB97FC #E2D2FE #ECE1FE

Accessibility & contrast

On white

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

On black

8.95
#BB97FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB97FC
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB97FC#FFFFFF#000000##000000
##BB97FC1.002.358.958.95
#FFFFFF2.351.0021.0021.00
#0000008.9521.001.001.00
##0000008.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7CA9FF
Deuteranopia (green-blind)
#83A8F9
Tritanopia (blue-blind)
#AFA8BE
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #bb97fc;
/* rgb */ color: rgb(187, 151, 252);
/* oklch */ color: oklch(74.9% 0.146 299.3);
Tailwind
colors: {
  custom: {
    50: '#d1b6fe',
    500: '#bb97fc',
    950: '#000000',
  },
}
SCSS
$custom: #bb97fc;
$custom-light: #d1b6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#bb97fc",
  "rgb": {
    "r": 187,
    "g": 151,
    "b": 252
  },
  "hsl": {
    "h": 261.386,
    "s": 94.393,
    "l": 79.02
  },
  "oklch": {
    "l": 0.7486,
    "c": 0.14563,
    "h": 299.3
  },
  "luminance": 0.39726
}

Semantic roles & 50–950 ramp

primary
#BB97FC
secondary
#EAF6D5
accent
#E60094
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141118
muted
#838086

Preview Lab

Preview with #BB97FC

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

Preview Lab → · Contrast checker → · Palette generator →

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