#BB98F8#BB98F8

#BB98F8 is a light, vivid violet. Relative luminance 0.398; OKLCH L 74.8% C 0.139 H 299.8°. Best body text is #000000 at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#BB98F8
RGBrgb(187, 152, 248)
HSLhsl(262, 87%, 78%)
HSVhsv(262, 39%, 97%)
CMYKcmyk(24.6%, 38.7%, 0%, 2.7%)
CIE-LABlab(69.33, 32.21, -43.26)
CIE-LCHlch(69.33, 53.93, 306.67°)
OKLaboklab(74.84% 0.0691 -0.1205)
OKLCHoklch(74.84% 0.139 299.8)
XYZxyz(48.6612, 39.7984, 93.9069)
Luminance0.3980 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB98F8 #D5F898
analogous
#98A5F8 #BB98F8 #EB98F8
triadic
#BB98F8 #F8BB98 #98F8BB
tetradic
#BB98F8 #F898A5 #D5F898 #98F8EB
square
#BB98F8 #F898A5 #D5F898 #98F8EB
split-complementary
#BB98F8 #F8EB98 #A5F898
monochromatic
#6F25F0 #955FF4 #BB98F8 #E1D1FC #ECE2FD

Accessibility & contrast

On white

2.34
#BB98F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.96
#BB98F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB98F8
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB98F8#FFFFFF#000000##000000
##BB98F81.002.348.968.96
#FFFFFF2.341.0021.0021.00
#0000008.9621.001.001.00
##0000008.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7FA9FC
Deuteranopia (green-blind)
#86A9F5
Tritanopia (blue-blind)
#B0A8BC
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #bb98f8;
/* rgb */ color: rgb(187, 152, 248);
/* oklch */ color: oklch(74.8% 0.139 299.8);
Tailwind
colors: {
  custom: {
    50: '#d1b6fb',
    500: '#bb98f8',
    950: '#000000',
  },
}
SCSS
$custom: #bb98f8;
$custom-light: #d1b6fb;
$custom-dark: #000000;
JSON
{
  "hex": "#bb98f8",
  "rgb": {
    "r": 187,
    "g": 152,
    "b": 248
  },
  "hsl": {
    "h": 261.875,
    "s": 87.273,
    "l": 78.431
  },
  "oklch": {
    "l": 0.7484,
    "c": 0.1389,
    "h": 299.8
  },
  "luminance": 0.39799
}

Semantic roles & 50–950 ramp

primary
#BB98F8
secondary
#EAF5D6
accent
#E40291
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141117
muted
#838085

Preview Lab

Preview with #BB98F8

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

Preview Lab → · Contrast checker → · Palette generator →

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