#BB98ED#BB98ED

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

Color values

HEX#BB98ED
RGBrgb(187, 152, 237)
HSLhsl(265, 70%, 76%)
HSVhsv(265, 36%, 93%)
CMYKcmyk(21.1%, 35.9%, 0%, 7.1%)
CIE-LABlab(68.85, 29.67, -37.99)
CIE-LCHlch(68.85, 48.21, 307.99°)
OKLaboklab(74.32% 0.0669 -0.1053)
OKLCHoklch(74.32% 0.125 302.4)
XYZxyz(47.0046, 39.1357, 85.1820)
Luminance0.3914 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB98ED #CAED98
analogous
#98A0ED #BB98ED #E698ED
triadic
#BB98ED #EDBB98 #98EDBB
tetradic
#BB98ED #ED98A0 #CAED98 #98EDE6
square
#BB98ED #ED98A0 #CAED98 #98EDE6
split-complementary
#BB98ED #EDE698 #A0ED98
monochromatic
#7630DB #9964E4 #BB98ED #DDCCF6 #EEE5FA

Accessibility & contrast

On white

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

On black

8.83
#BB98ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB98ED
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB98ED#FFFFFF#000000##000000
##BB98ED1.002.388.838.83
#FFFFFF2.381.0021.0021.00
#0000008.8321.001.001.00
##0000008.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#85A7F0
Deuteranopia (green-blind)
#8BA8EB
Tritanopia (blue-blind)
#B3A5B8
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #bb98ed;
/* rgb */ color: rgb(187, 152, 237);
/* oklch */ color: oklch(74.3% 0.125 302.4);
Tailwind
colors: {
  custom: {
    50: '#d1b6f3',
    500: '#bb98ed',
    950: '#000000',
  },
}
SCSS
$custom: #bb98ed;
$custom-light: #d1b6f3;
$custom-dark: #000000;
JSON
{
  "hex": "#bb98ed",
  "rgb": {
    "r": 187,
    "g": 152,
    "b": 237
  },
  "hsl": {
    "h": 264.706,
    "s": 70.248,
    "l": 76.275
  },
  "oklch": {
    "l": 0.74322,
    "c": 0.12472,
    "h": 302.4
  },
  "luminance": 0.39136
}

Semantic roles & 50–950 ramp

primary
#BB98ED
secondary
#E8F2D9
accent
#D21384
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #BB98ED

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

Preview Lab → · Contrast checker → · Palette generator →

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