#BB98E7#BB98E7

#BB98E7 is a light, moderate violet. Relative luminance 0.388; OKLCH L 74.1% C 0.117 H 304.0°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#BB98E7
RGBrgb(187, 152, 231)
HSLhsl(267, 62%, 75%)
HSVhsv(267, 34%, 91%)
CMYKcmyk(19%, 34.2%, 0%, 9.4%)
CIE-LABlab(68.60, 28.32, -35.09)
CIE-LCHlch(68.60, 45.09, 308.90°)
OKLaboklab(74.05% 0.0655 -0.097)
OKLCHoklch(74.05% 0.117 304)
XYZxyz(46.1426, 38.7909, 80.6423)
Luminance0.3879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB98E7 #C4E798
analogous
#989DE7 #BB98E7 #E298E7
triadic
#BB98E7 #E7BB98 #98E7BB
tetradic
#BB98E7 #E7989D #C4E798 #98E7E2
square
#BB98E7 #E7989D #C4E798 #98E7E2
split-complementary
#BB98E7 #E7E298 #9DE798
monochromatic
#7935D0 #9A66DB #BB98E7 #DCCAF3 #EFE6F9

Accessibility & contrast

On white

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

On black

8.76
#BB98E7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB98E7
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB98E7#FFFFFF#000000##000000
##BB98E71.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#87A6EA
Deuteranopia (green-blind)
#8EA7E5
Tritanopia (blue-blind)
#B4A4B5
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #bb98e7;
/* rgb */ color: rgb(187, 152, 231);
/* oklch */ color: oklch(74.1% 0.117 304.0);
Tailwind
colors: {
  custom: {
    50: '#d0b6ef',
    500: '#bb98e7',
    950: '#000000',
  },
}
SCSS
$custom: #bb98e7;
$custom-light: #d0b6ef;
$custom-dark: #000000;
JSON
{
  "hex": "#bb98e7",
  "rgb": {
    "r": 187,
    "g": 152,
    "b": 231
  },
  "hsl": {
    "h": 266.582,
    "s": 62.205,
    "l": 75.098
  },
  "oklch": {
    "l": 0.7405,
    "c": 0.11699,
    "h": 304
  },
  "luminance": 0.38791
}

Semantic roles & 50–950 ramp

primary
#BB98E7
secondary
#E7F1DA
accent
#CA1C7D
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141116
muted
#828084

Preview Lab

Preview with #BB98E7

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

Preview Lab → · Contrast checker → · Palette generator →

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