#B98CF9#B98CF9

#B98CF9 is a light, vivid violet. Relative luminance 0.359; OKLCH L 72.6% C 0.159 H 301.6°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#B98CF9
RGBrgb(185, 140, 249)
HSLhsl(265, 90%, 76%)
HSVhsv(265, 44%, 98%)
CMYKcmyk(25.7%, 43.8%, 0%, 2.4%)
CIE-LABlab(66.45, 38.53, -48.34)
CIE-LCHlch(66.45, 61.82, 308.56°)
OKLaboklab(72.64% 0.0833 -0.1352)
OKLCHoklch(72.64% 0.159 301.6)
XYZxyz(46.4807, 35.9099, 94.0867)
Luminance0.3591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B98CF9 #CCF98C
analogous
#8C96F9 #B98CF9 #F08CF9
triadic
#B98CF9 #F9B98C #8CF9B9
tetradic
#B98CF9 #F98C96 #CCF98C #8CF9F0
square
#B98CF9 #F98C96 #CCF98C #8CF9F0
split-complementary
#B98CF9 #F9F08C #96F98C
monochromatic
#7218F3 #9652F6 #B98CF9 #DCC6FC #EDE2FD

Accessibility & contrast

On white

2.57
#B98CF9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.18
#B98CF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B98CF9
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B98CF9#FFFFFF#000000##000000
##B98CF91.002.578.188.18
#FFFFFF2.571.0021.0021.00
#0000008.1821.001.001.00
##0000008.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6EA1FD
Deuteranopia (green-blind)
#78A1F6
Tritanopia (blue-blind)
#AD9FB7
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b98cf9;
/* rgb */ color: rgb(185, 140, 249);
/* oklch */ color: oklch(72.6% 0.159 301.6);
Tailwind
colors: {
  custom: {
    50: '#d0aefc',
    500: '#b98cf9',
    950: '#000000',
  },
}
SCSS
$custom: #b98cf9;
$custom-light: #d0aefc;
$custom-dark: #000000;
JSON
{
  "hex": "#b98cf9",
  "rgb": {
    "r": 185,
    "g": 140,
    "b": 249
  },
  "hsl": {
    "h": 264.771,
    "s": 90.083,
    "l": 76.275
  },
  "oklch": {
    "l": 0.72641,
    "c": 0.15878,
    "h": 301.6
  },
  "luminance": 0.3591
}

Semantic roles & 50–950 ramp

primary
#B98CF9
secondary
#E8F6D5
accent
#E60087
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #B98CF9

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

Preview Lab → · Contrast checker → · Palette generator →

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