#BB98EC#BB98EC

#BB98EC is a light, vivid violet. Relative luminance 0.391; OKLCH L 74.3% C 0.123 H 302.7°. Best body text is #000000 at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#BB98EC
RGBrgb(187, 152, 236)
HSLhsl(265, 69%, 76%)
HSVhsv(265, 36%, 93%)
CMYKcmyk(20.8%, 35.6%, 0%, 7.5%)
CIE-LABlab(68.81, 29.44, -37.51)
CIE-LCHlch(68.81, 47.69, 308.13°)
OKLaboklab(74.28% 0.0666 -0.1039)
OKLCHoklch(74.28% 0.123 302.7)
XYZxyz(46.8589, 39.0774, 84.4147)
Luminance0.3908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB98EC #C9EC98
analogous
#989FEC #BB98EC #E598EC
triadic
#BB98EC #ECBB98 #98ECBB
tetradic
#BB98EC #EC989F #C9EC98 #98ECE5
square
#BB98EC #EC989F #C9EC98 #98ECE5
split-complementary
#BB98EC #ECE598 #9FEC98
monochromatic
#7731D9 #9964E2 #BB98EC #DDCCF6 #EEE5FA

Accessibility & contrast

On white

2.38
#BB98EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.82
#BB98EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB98EC
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB98EC#FFFFFF#000000##000000
##BB98EC1.002.388.828.82
#FFFFFF2.381.0021.0021.00
#0000008.8221.001.001.00
##0000008.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#85A7EF
Deuteranopia (green-blind)
#8CA8EA
Tritanopia (blue-blind)
#B3A5B7
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #bb98ec;
/* rgb */ color: rgb(187, 152, 236);
/* oklch */ color: oklch(74.3% 0.123 302.7);
Tailwind
colors: {
  custom: {
    50: '#d0b6f2',
    500: '#bb98ec',
    950: '#000000',
  },
}
SCSS
$custom: #bb98ec;
$custom-light: #d0b6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#bb98ec",
  "rgb": {
    "r": 187,
    "g": 152,
    "b": 236
  },
  "hsl": {
    "h": 265,
    "s": 68.852,
    "l": 76.078
  },
  "oklch": {
    "l": 0.74276,
    "c": 0.12343,
    "h": 302.7
  },
  "luminance": 0.39077
}

Semantic roles & 50–950 ramp

primary
#BB98EC
secondary
#E8F2D9
accent
#D11582
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #BB98EC

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

Preview Lab → · Contrast checker → · Palette generator →

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