#BB98FE#BB98FE

#BB98FE is a light, vivid violet. Relative luminance 0.402; OKLCH L 75.1% C 0.147 H 298.6°. Best body text is #000000 at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#BB98FE
RGBrgb(187, 152, 254)
HSLhsl(261, 98%, 80%)
HSVhsv(261, 40%, 100%)
CMYKcmyk(26.4%, 40.2%, 0%, 0.4%)
CIE-LABlab(69.60, 33.62, -46.10)
CIE-LCHlch(69.60, 57.06, 306.10°)
OKLaboklab(75.13% 0.0703 -0.1287)
OKLCHoklch(75.13% 0.147 298.6)
XYZxyz(49.6070, 40.1767, 98.8881)
Luminance0.4018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB98FE #DBFE98
analogous
#98A8FE #BB98FE #EE98FE
triadic
#BB98FE #FEBB98 #98FEBB
tetradic
#BB98FE #FE98A8 #DBFE98 #98FEEE
square
#BB98FE #FE98A8 #DBFE98 #98FEEE
split-complementary
#BB98FE #FEEE98 #A8FE98
monochromatic
#6B1FFD #935BFD #BB98FE #E3D5FF #EBE1FF

Accessibility & contrast

On white

2.32
#BB98FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.04
#BB98FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB98FE
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB98FE#FFFFFF#000000##000000
##BB98FE1.002.329.049.04
#FFFFFF2.321.0021.0021.00
#0000009.0421.001.001.00
##0000009.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7CAAFF
Deuteranopia (green-blind)
#83A9FB
Tritanopia (blue-blind)
#AEAABF
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #bb98fe;
/* rgb */ color: rgb(187, 152, 254);
/* oklch */ color: oklch(75.1% 0.147 298.6);
Tailwind
colors: {
  custom: {
    50: '#d1b6ff',
    500: '#bb98fe',
    950: '#000000',
  },
}
SCSS
$custom: #bb98fe;
$custom-light: #d1b6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#bb98fe",
  "rgb": {
    "r": 187,
    "g": 152,
    "b": 254
  },
  "hsl": {
    "h": 260.588,
    "s": 98.077,
    "l": 79.608
  },
  "oklch": {
    "l": 0.75133,
    "c": 0.14664,
    "h": 298.6
  },
  "luminance": 0.40177
}

Semantic roles & 50–950 ramp

primary
#BB98FE
secondary
#EBF7D4
accent
#E60097
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141118
muted
#838086

Preview Lab

Preview with #BB98FE

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

Preview Lab → · Contrast checker → · Palette generator →

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