#BB98DC#BB98DC

#BB98DC is a light, moderate violet. Relative luminance 0.382; OKLCH L 73.6% C 0.103 H 307.5°. Best body text is #000000 at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#BB98DC
RGBrgb(187, 152, 220)
HSLhsl(271, 49%, 73%)
HSVhsv(271, 31%, 86%)
CMYKcmyk(15%, 30.9%, 0%, 13.7%)
CIE-LABlab(68.16, 25.89, -29.72)
CIE-LCHlch(68.16, 39.41, 311.07°)
OKLaboklab(73.57% 0.0627 -0.0816)
OKLCHoklch(73.57% 0.103 307.5)
XYZxyz(44.6376, 38.1889, 72.7159)
Luminance0.3819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB98DC #B9DC98
analogous
#9998DC #BB98DC #DC98DB
triadic
#BB98DC #DCBB98 #98DCBB
tetradic
#BB98DC #DC9998 #B9DC98 #98DBDC
square
#BB98DC #DC9998 #B9DC98 #98DBDC
split-complementary
#BB98DC #DBDC98 #98DC99
monochromatic
#7F3FBA #9D6ACC #BB98DC #D9C6EC #F0E8F7

Accessibility & contrast

On white

2.43
#BB98DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.64
#BB98DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB98DC
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB98DC#FFFFFF#000000##000000
##BB98DC1.002.438.648.64
#FFFFFF2.431.0021.0021.00
#0000008.6421.001.001.00
##0000008.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BA5DF
Deuteranopia (green-blind)
#93A7DA
Tritanopia (blue-blind)
#B7A2B1
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #bb98dc;
/* rgb */ color: rgb(187, 152, 220);
/* oklch */ color: oklch(73.6% 0.103 307.5);
Tailwind
colors: {
  custom: {
    50: '#d0b6e7',
    500: '#bb98dc',
    950: '#000000',
  },
}
SCSS
$custom: #bb98dc;
$custom-light: #d0b6e7;
$custom-dark: #000000;
JSON
{
  "hex": "#bb98dc",
  "rgb": {
    "r": 187,
    "g": 152,
    "b": 220
  },
  "hsl": {
    "h": 270.882,
    "s": 49.275,
    "l": 72.941
  },
  "oklch": {
    "l": 0.73569,
    "c": 0.10294,
    "h": 307.5
  },
  "luminance": 0.38189
}

Semantic roles & 50–950 ramp

primary
#BB98DC
secondary
#E5EEDD
accent
#BD2971
background
#FCFBFE
surface
#F9F6FC
border
#D2D0D5
text
#141116
muted
#828084

Preview Lab

Preview with #BB98DC

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

Preview Lab → · Contrast checker → · Palette generator →

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