#BB97F8#BB97F8

#BB97F8 is a light, vivid violet. Relative luminance 0.395; OKLCH L 74.7% C 0.140 H 300.1°. Best body text is #000000 at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#BB97F8
RGBrgb(187, 151, 248)
HSLhsl(262, 87%, 78%)
HSVhsv(262, 39%, 97%)
CMYKcmyk(24.6%, 39.1%, 0%, 2.7%)
CIE-LABlab(69.09, 32.76, -43.62)
CIE-LCHlch(69.09, 54.56, 306.91°)
OKLaboklab(74.66% 0.0705 -0.1215)
OKLCHoklch(74.66% 0.14 300.1)
XYZxyz(48.4996, 39.4751, 93.8531)
Luminance0.3947 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB97F8 #D4F897
analogous
#97A3F8 #BB97F8 #EB97F8
triadic
#BB97F8 #F8BB97 #97F8BB
tetradic
#BB97F8 #F897A3 #D4F897 #97F8EB
square
#BB97F8 #F897A3 #D4F897 #97F8EB
split-complementary
#BB97F8 #F8EB97 #A3F897
monochromatic
#7024F0 #965EF4 #BB97F8 #E0D0FC #ECE2FD

Accessibility & contrast

On white

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

On black

8.90
#BB97F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB97F8
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB97F8#FFFFFF#000000##000000
##BB97F81.002.368.908.90
#FFFFFF2.361.0021.0021.00
#0000008.9021.001.001.00
##0000008.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7EA8FC
Deuteranopia (green-blind)
#85A8F5
Tritanopia (blue-blind)
#B0A7BC
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #bb97f8;
/* rgb */ color: rgb(187, 151, 248);
/* oklch */ color: oklch(74.7% 0.140 300.1);
Tailwind
colors: {
  custom: {
    50: '#d1b6fb',
    500: '#bb97f8',
    950: '#000000',
  },
}
SCSS
$custom: #bb97f8;
$custom-light: #d1b6fb;
$custom-dark: #000000;
JSON
{
  "hex": "#bb97f8",
  "rgb": {
    "r": 187,
    "g": 151,
    "b": 248
  },
  "hsl": {
    "h": 262.268,
    "s": 87.387,
    "l": 78.235
  },
  "oklch": {
    "l": 0.74664,
    "c": 0.14049,
    "h": 300.1
  },
  "luminance": 0.39475
}

Semantic roles & 50–950 ramp

primary
#BB97F8
secondary
#EAF5D6
accent
#E40290
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141117
muted
#838085

Preview Lab

Preview with #BB97F8

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

Preview Lab → · Contrast checker → · Palette generator →

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