#B998EA#B998EA

#B998EA is a light, vivid violet. Relative luminance 0.387; OKLCH L 74.0% C 0.120 H 302.0°. Best body text is #000000 at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#B998EA
RGBrgb(185, 152, 234)
HSLhsl(264, 66%, 76%)
HSVhsv(264, 35%, 92%)
CMYKcmyk(20.9%, 35%, 0%, 8.2%)
CIE-LABlab(68.54, 28.40, -36.84)
CIE-LCHlch(68.54, 46.52, 307.63°)
OKLaboklab(74% 0.0639 -0.102)
OKLCHoklch(74% 0.12 302)
XYZxyz(46.0839, 38.7113, 82.8701)
Luminance0.3871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B998EA #C9EA98
analogous
#98A0EA #B998EA #E298EA
triadic
#B998EA #EAB998 #98EAB9
tetradic
#B998EA #EA98A0 #C9EA98 #98EAE2
square
#B998EA #EA98A0 #C9EA98 #98EAE2
split-complementary
#B998EA #EAE298 #A0EA98
monochromatic
#7432D5 #9665E0 #B998EA #DCCBF4 #EEE6FA

Accessibility & contrast

On white

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

On black

8.74
#B998EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B998EA
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B998EA#FFFFFF#000000##000000
##B998EA1.002.408.748.74
#FFFFFF2.401.0021.0021.00
#0000008.7421.001.001.00
##0000008.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#85A7ED
Deuteranopia (green-blind)
#8CA7E8
Tritanopia (blue-blind)
#B1A5B6
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b998ea;
/* rgb */ color: rgb(185, 152, 234);
/* oklch */ color: oklch(74.0% 0.120 302.0);
Tailwind
colors: {
  custom: {
    50: '#cfb6f1',
    500: '#b998ea',
    950: '#000000',
  },
}
SCSS
$custom: #b998ea;
$custom-light: #cfb6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#b998ea",
  "rgb": {
    "r": 185,
    "g": 152,
    "b": 234
  },
  "hsl": {
    "h": 264.146,
    "s": 66.129,
    "l": 75.686
  },
  "oklch": {
    "l": 0.74003,
    "c": 0.12036,
    "h": 302
  },
  "luminance": 0.38711
}

Semantic roles & 50–950 ramp

primary
#B998EA
secondary
#E8F1DA
accent
#CE1885
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141116
muted
#828084

Preview Lab

Preview with #B998EA

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

Preview Lab → · Contrast checker → · Palette generator →

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