#BB97EC#BB97EC

#BB97EC is a light, vivid violet. Relative luminance 0.388; OKLCH L 74.1% C 0.125 H 303.0°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#BB97EC
RGBrgb(187, 151, 236)
HSLhsl(265, 69%, 76%)
HSVhsv(265, 36%, 93%)
CMYKcmyk(20.8%, 36%, 0%, 7.5%)
CIE-LABlab(68.57, 30.00, -37.88)
CIE-LCHlch(68.57, 48.32, 308.38°)
OKLaboklab(74.1% 0.068 -0.1049)
OKLCHoklch(74.1% 0.125 303)
XYZxyz(46.6973, 38.7542, 84.3608)
Luminance0.3875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB97EC #C8EC97
analogous
#979DEC #BB97EC #E697EC
triadic
#BB97EC #ECBB97 #97ECBB
tetradic
#BB97EC #EC979D #C8EC97 #97ECE6
square
#BB97EC #EC979D #C8EC97 #97ECE6
split-complementary
#BB97EC #ECE697 #9DEC97
monochromatic
#7730D9 #9963E3 #BB97EC #DDCBF5 #EEE5FA

Accessibility & contrast

On white

2.40
#BB97EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.75
#BB97EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB97EC
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB97EC#FFFFFF#000000##000000
##BB97EC1.002.408.758.75
#FFFFFF2.401.0021.0021.00
#0000008.7521.001.001.00
##0000008.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#84A6EF
Deuteranopia (green-blind)
#8BA7EA
Tritanopia (blue-blind)
#B3A4B7
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #bb97ec;
/* rgb */ color: rgb(187, 151, 236);
/* oklch */ color: oklch(74.1% 0.125 303.0);
Tailwind
colors: {
  custom: {
    50: '#d1b6f2',
    500: '#bb97ec',
    950: '#000000',
  },
}
SCSS
$custom: #bb97ec;
$custom-light: #d1b6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#bb97ec",
  "rgb": {
    "r": 187,
    "g": 151,
    "b": 236
  },
  "hsl": {
    "h": 265.412,
    "s": 69.106,
    "l": 75.882
  },
  "oklch": {
    "l": 0.74098,
    "c": 0.12507,
    "h": 303
  },
  "luminance": 0.38754
}

Semantic roles & 50–950 ramp

primary
#BB97EC
secondary
#E7F2D9
accent
#D11481
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #BB97EC

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

Preview Lab → · Contrast checker → · Palette generator →

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