#B998F9#B998F9

#B998F9 is a light, vivid violet. Relative luminance 0.396; OKLCH L 74.7% C 0.140 H 298.6°. Best body text is #000000 at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#B998F9
RGBrgb(185, 152, 249)
HSLhsl(260, 89%, 79%)
HSVhsv(260, 39%, 98%)
CMYKcmyk(25.7%, 39%, 0%, 2.4%)
CIE-LABlab(69.19, 31.88, -44.03)
CIE-LCHlch(69.19, 54.36, 305.91°)
OKLaboklab(74.71% 0.067 -0.1227)
OKLCHoklch(74.71% 0.14 298.6)
XYZxyz(48.3308, 39.6100, 94.7034)
Luminance0.3961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B998F9 #D8F998
analogous
#98A7F9 #B998F9 #E998F9
triadic
#B998F9 #F9B998 #98F9B9
tetradic
#B998F9 #F998A7 #D8F998 #98F9E9
square
#B998F9 #F998A7 #D8F998 #98F9E9
split-complementary
#B998F9 #F9E998 #A7F998
monochromatic
#6A24F2 #925EF6 #B998F9 #E0D2FC #EBE2FD

Accessibility & contrast

On white

2.35
#B998F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.92
#B998F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B998F9
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B998F9#FFFFFF#000000##000000
##B998F91.002.358.928.92
#FFFFFF2.351.0021.0021.00
#0000008.9221.001.001.00
##0000008.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7EA9FD
Deuteranopia (green-blind)
#84A8F6
Tritanopia (blue-blind)
#ADA8BD
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #b998f9;
/* rgb */ color: rgb(185, 152, 249);
/* oklch */ color: oklch(74.7% 0.140 298.6);
Tailwind
colors: {
  custom: {
    50: '#d0b6fb',
    500: '#b998f9',
    950: '#000000',
  },
}
SCSS
$custom: #b998f9;
$custom-light: #d0b6fb;
$custom-dark: #000000;
JSON
{
  "hex": "#b998f9",
  "rgb": {
    "r": 185,
    "g": 152,
    "b": 249
  },
  "hsl": {
    "h": 260.412,
    "s": 88.991,
    "l": 78.627
  },
  "oklch": {
    "l": 0.7471,
    "c": 0.13985,
    "h": 298.6
  },
  "luminance": 0.3961
}

Semantic roles & 50–950 ramp

primary
#B998F9
secondary
#EBF5D6
accent
#E60097
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141117
muted
#828085

Preview Lab

Preview with #B998F9

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

Preview Lab → · Contrast checker → · Palette generator →

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