#BB97EF#BB97EF

#BB97EF is a light, vivid violet. Relative luminance 0.389; OKLCH L 74.2% C 0.129 H 302.2°. Best body text is #000000 at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#BB97EF
RGBrgb(187, 151, 239)
HSLhsl(265, 73%, 76%)
HSVhsv(265, 37%, 94%)
CMYKcmyk(21.8%, 36.8%, 0%, 6.3%)
CIE-LABlab(68.70, 30.68, -39.32)
CIE-LCHlch(68.70, 49.88, 307.96°)
OKLaboklab(74.24% 0.0687 -0.1091)
OKLCHoklch(74.24% 0.129 302.2)
XYZxyz(47.1368, 38.9300, 86.6756)
Luminance0.3893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB97EF #CBEF97
analogous
#979FEF #BB97EF #E797EF
triadic
#BB97EF #EFBB97 #97EFBB
tetradic
#BB97EF #EF979F #CBEF97 #97EFE7
square
#BB97EF #EF979F #CBEF97 #97EFE7
split-complementary
#BB97EF #EFE797 #9FEF97
monochromatic
#762DDF #9862E7 #BB97EF #DECCF7 #EEE4FB

Accessibility & contrast

On white

2.39
#BB97EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.79
#BB97EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB97EF
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB97EF#FFFFFF#000000##000000
##BB97EF1.002.398.798.79
#FFFFFF2.391.0021.0021.00
#0000008.7921.001.001.00
##0000008.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#82A7F2
Deuteranopia (green-blind)
#89A7ED
Tritanopia (blue-blind)
#B2A5B8
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #bb97ef;
/* rgb */ color: rgb(187, 151, 239);
/* oklch */ color: oklch(74.2% 0.129 302.2);
Tailwind
colors: {
  custom: {
    50: '#d1b6f4',
    500: '#bb97ef',
    950: '#000000',
  },
}
SCSS
$custom: #bb97ef;
$custom-light: #d1b6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#bb97ef",
  "rgb": {
    "r": 187,
    "g": 151,
    "b": 239
  },
  "hsl": {
    "h": 264.545,
    "s": 73.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.74237,
    "c": 0.12893,
    "h": 302.2
  },
  "luminance": 0.3893
}

Semantic roles & 50–950 ramp

primary
#BB97EF
secondary
#E8F3D8
accent
#D51085
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #BB97EF

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

Preview Lab → · Contrast checker → · Palette generator →

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