#BB97F2#BB97F2

#BB97F2 is a light, vivid violet. Relative luminance 0.391; OKLCH L 74.4% C 0.133 H 301.5°. Best body text is #000000 at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#BB97F2
RGBrgb(187, 151, 242)
HSLhsl(264, 78%, 77%)
HSVhsv(264, 38%, 95%)
CMYKcmyk(22.7%, 37.6%, 0%, 5.1%)
CIE-LABlab(68.83, 31.37, -40.76)
CIE-LCHlch(68.83, 51.44, 307.58°)
OKLaboklab(74.38% 0.0693 -0.1133)
OKLCHoklch(74.38% 0.133 301.5)
XYZxyz(47.5837, 39.1087, 89.0291)
Luminance0.3911 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB97F2 #CEF297
analogous
#97A1F2 #BB97F2 #E897F2
triadic
#BB97F2 #F2BB97 #97F2BB
tetradic
#BB97F2 #F297A1 #CEF297 #97F2E8
square
#BB97F2 #F297A1 #CEF297 #97F2E8
split-complementary
#BB97F2 #F2E897 #A1F297
monochromatic
#742AE4 #9761EB #BB97F2 #DFCDF9 #EDE4FC

Accessibility & contrast

On white

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

On black

8.82
#BB97F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB97F2
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB97F2#FFFFFF#000000##000000
##BB97F21.002.388.828.82
#FFFFFF2.381.0021.0021.00
#0000008.8221.001.001.00
##0000008.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#81A7F5
Deuteranopia (green-blind)
#88A8F0
Tritanopia (blue-blind)
#B1A6B9
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #bb97f2;
/* rgb */ color: rgb(187, 151, 242);
/* oklch */ color: oklch(74.4% 0.133 301.5);
Tailwind
colors: {
  custom: {
    50: '#d1b6f6',
    500: '#bb97f2',
    950: '#000000',
  },
}
SCSS
$custom: #bb97f2;
$custom-light: #d1b6f6;
$custom-dark: #000000;
JSON
{
  "hex": "#bb97f2",
  "rgb": {
    "r": 187,
    "g": 151,
    "b": 242
  },
  "hsl": {
    "h": 263.736,
    "s": 77.778,
    "l": 77.059
  },
  "oklch": {
    "l": 0.74378,
    "c": 0.13278,
    "h": 301.5
  },
  "luminance": 0.39109
}

Semantic roles & 50–950 ramp

primary
#BB97F2
secondary
#E8F3D8
accent
#DA0B88
background
#FCFBFF
surface
#F9F6FE
border
#D2D0D6
text
#141117
muted
#828085

Preview Lab

Preview with #BB97F2

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

Preview Lab → · Contrast checker → · Palette generator →

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