#BB97F3#BB97F3

#BB97F3 is a light, vivid violet. Relative luminance 0.392; OKLCH L 74.4% C 0.134 H 301.2°. Best body text is #000000 at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#BB97F3
RGBrgb(187, 151, 243)
HSLhsl(263, 79%, 77%)
HSVhsv(263, 38%, 95%)
CMYKcmyk(23%, 37.9%, 0%, 4.7%)
CIE-LABlab(68.87, 31.60, -41.24)
CIE-LCHlch(68.87, 51.96, 307.46°)
OKLaboklab(74.43% 0.0695 -0.1146)
OKLCHoklch(74.43% 0.134 301.2)
XYZxyz(47.7342, 39.1690, 89.8222)
Luminance0.3917 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB97F3 #CFF397
analogous
#97A1F3 #BB97F3 #E997F3
triadic
#BB97F3 #F3BB97 #97F3BB
tetradic
#BB97F3 #F397A1 #CFF397 #97F3E9
square
#BB97F3 #F397A1 #CFF397 #97F3E9
split-complementary
#BB97F3 #F3E997 #A1F397
monochromatic
#7329E6 #9760ED #BB97F3 #DFCEF9 #EDE4FC

Accessibility & contrast

On white

2.38
#BB97F3 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.83
#BB97F3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB97F3
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB97F3#FFFFFF#000000##000000
##BB97F31.002.388.838.83
#FFFFFF2.381.0021.0021.00
#0000008.8321.001.001.00
##0000008.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#81A8F7
Deuteranopia (green-blind)
#88A8F1
Tritanopia (blue-blind)
#B1A6BA
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #bb97f3;
/* rgb */ color: rgb(187, 151, 243);
/* oklch */ color: oklch(74.4% 0.134 301.2);
Tailwind
colors: {
  custom: {
    50: '#d1b6f7',
    500: '#bb97f3',
    950: '#000000',
  },
}
SCSS
$custom: #bb97f3;
$custom-light: #d1b6f7;
$custom-dark: #000000;
JSON
{
  "hex": "#bb97f3",
  "rgb": {
    "r": 187,
    "g": 151,
    "b": 243
  },
  "hsl": {
    "h": 263.478,
    "s": 79.31,
    "l": 77.255
  },
  "oklch": {
    "l": 0.74425,
    "c": 0.13407,
    "h": 301.2
  },
  "luminance": 0.39169
}

Semantic roles & 50–950 ramp

primary
#BB97F3
secondary
#E9F4D7
accent
#DC0A8A
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141117
muted
#828085

Preview Lab

Preview with #BB97F3

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

Preview Lab → · Contrast checker → · Palette generator →

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