#BB98F7#BB98F7

#BB98F7 is a light, vivid violet. Relative luminance 0.397; OKLCH L 74.8% C 0.138 H 300.1°. Best body text is #000000 at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#BB98F7
RGBrgb(187, 152, 247)
HSLhsl(262, 86%, 78%)
HSVhsv(262, 38%, 97%)
CMYKcmyk(24.3%, 38.5%, 0%, 3.1%)
CIE-LABlab(69.28, 31.98, -42.79)
CIE-LCHlch(69.28, 53.41, 306.77°)
OKLaboklab(74.79% 0.0689 -0.1191)
OKLCHoklch(74.79% 0.138 300.1)
XYZxyz(48.5065, 39.7365, 93.0921)
Luminance0.3974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB98F7 #D4F798
analogous
#98A4F7 #BB98F7 #EA98F7
triadic
#BB98F7 #F7BB98 #98F7BB
tetradic
#BB98F7 #F798A4 #D4F798 #98F7EA
square
#BB98F7 #F798A4 #D4F798 #98F7EA
split-complementary
#BB98F7 #F7EA98 #A4F798
monochromatic
#7026EE #965FF3 #BB98F7 #E0D1FB #ECE3FD

Accessibility & contrast

On white

2.35
#BB98F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.95
#BB98F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB98F7
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB98F7#FFFFFF#000000##000000
##BB98F71.002.358.958.95
#FFFFFF2.351.0021.0021.00
#0000008.9521.001.001.00
##0000008.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#80A9FB
Deuteranopia (green-blind)
#87A9F4
Tritanopia (blue-blind)
#B0A8BC
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #bb98f7;
/* rgb */ color: rgb(187, 152, 247);
/* oklch */ color: oklch(74.8% 0.138 300.1);
Tailwind
colors: {
  custom: {
    50: '#d1b6fa',
    500: '#bb98f7',
    950: '#000000',
  },
}
SCSS
$custom: #bb98f7;
$custom-light: #d1b6fa;
$custom-dark: #000000;
JSON
{
  "hex": "#bb98f7",
  "rgb": {
    "r": 187,
    "g": 152,
    "b": 247
  },
  "hsl": {
    "h": 262.105,
    "s": 85.586,
    "l": 78.235
  },
  "oklch": {
    "l": 0.74792,
    "c": 0.13761,
    "h": 300.1
  },
  "luminance": 0.39737
}

Semantic roles & 50–950 ramp

primary
#BB98F7
secondary
#EAF5D6
accent
#E20390
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141117
muted
#838085

Preview Lab

Preview with #BB98F7

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

Preview Lab → · Contrast checker → · Palette generator →

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