#BB97F7#BB97F7

#BB97F7 is a light, vivid violet. Relative luminance 0.394; OKLCH L 74.6% C 0.139 H 300.3°. Best body text is #000000 at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#BB97F7
RGBrgb(187, 151, 247)
HSLhsl(263, 86%, 78%)
HSVhsv(263, 39%, 97%)
CMYKcmyk(24.3%, 38.9%, 0%, 3.1%)
CIE-LABlab(69.05, 32.53, -43.15)
CIE-LCHlch(69.05, 54.04, 307.01°)
OKLaboklab(74.62% 0.0703 -0.1201)
OKLCHoklch(74.62% 0.139 300.3)
XYZxyz(48.3449, 39.4132, 93.0382)
Luminance0.3941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB97F7 #D3F797
analogous
#97A3F7 #BB97F7 #EB97F7
triadic
#BB97F7 #F7BB97 #97F7BB
tetradic
#BB97F7 #F797A3 #D3F797 #97F7EB
square
#BB97F7 #F797A3 #D3F797 #97F7EB
split-complementary
#BB97F7 #F7EB97 #A3F797
monochromatic
#7125EE #965EF3 #BB97F7 #E0D0FB #ECE3FD

Accessibility & contrast

On white

2.36
#BB97F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.88
#BB97F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB97F7
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB97F7#FFFFFF#000000##000000
##BB97F71.002.368.888.88
#FFFFFF2.361.0021.0021.00
#0000008.8821.001.001.00
##0000008.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7FA8FB
Deuteranopia (green-blind)
#86A8F4
Tritanopia (blue-blind)
#B0A7BB
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #bb97f7;
/* rgb */ color: rgb(187, 151, 247);
/* oklch */ color: oklch(74.6% 0.139 300.3);
Tailwind
colors: {
  custom: {
    50: '#d1b6fa',
    500: '#bb97f7',
    950: '#000000',
  },
}
SCSS
$custom: #bb97f7;
$custom-light: #d1b6fa;
$custom-dark: #000000;
JSON
{
  "hex": "#bb97f7",
  "rgb": {
    "r": 187,
    "g": 151,
    "b": 247
  },
  "hsl": {
    "h": 262.5,
    "s": 85.714,
    "l": 78.039
  },
  "oklch": {
    "l": 0.74616,
    "c": 0.13921,
    "h": 300.3
  },
  "luminance": 0.39413
}

Semantic roles & 50–950 ramp

primary
#BB97F7
secondary
#E9F5D6
accent
#E2038F
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141117
muted
#838085

Preview Lab

Preview with #BB97F7

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

Preview Lab → · Contrast checker → · Palette generator →

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