#B98EF9#B98EF9

#B98EF9 is a light, vivid violet. Relative luminance 0.365; OKLCH L 73.0% C 0.156 H 301.2°. Best body text is #000000 at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#B98EF9
RGBrgb(185, 142, 249)
HSLhsl(264, 90%, 77%)
HSVhsv(264, 43%, 98%)
CMYKcmyk(25.7%, 43%, 0%, 2.4%)
CIE-LABlab(66.90, 37.43, -47.63)
CIE-LCHlch(66.90, 60.58, 308.16°)
OKLaboklab(72.98% 0.0806 -0.1332)
OKLCHoklch(72.98% 0.156 301.2)
XYZxyz(46.7756, 36.4997, 94.1850)
Luminance0.3650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B98EF9 #CEF98E
analogous
#8E99F9 #B98EF9 #EE8EF9
triadic
#B98EF9 #F9B98E #8EF9B9
tetradic
#B98EF9 #F98E99 #CEF98E #8EF9EE
square
#B98EF9 #F98E99 #CEF98E #8EF9EE
split-complementary
#B98EF9 #F9EE8E #99F98E
monochromatic
#711AF3 #9554F6 #B98EF9 #DDC8FC #EDE2FD

Accessibility & contrast

On white

2.53
#B98EF9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.30
#B98EF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B98EF9
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B98EF9#FFFFFF#000000##000000
##B98EF91.002.538.308.30
#FFFFFF2.531.0021.0021.00
#0000008.3021.001.001.00
##0000008.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#71A2FD
Deuteranopia (green-blind)
#7AA2F6
Tritanopia (blue-blind)
#ADA0B8
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b98ef9;
/* rgb */ color: rgb(185, 142, 249);
/* oklch */ color: oklch(73.0% 0.156 301.2);
Tailwind
colors: {
  custom: {
    50: '#d0affb',
    500: '#b98ef9',
    950: '#000000',
  },
}
SCSS
$custom: #b98ef9;
$custom-light: #d0affb;
$custom-dark: #000000;
JSON
{
  "hex": "#b98ef9",
  "rgb": {
    "r": 185,
    "g": 142,
    "b": 249
  },
  "hsl": {
    "h": 264.112,
    "s": 89.916,
    "l": 76.667
  },
  "oklch": {
    "l": 0.72979,
    "c": 0.15563,
    "h": 301.2
  },
  "luminance": 0.365
}

Semantic roles & 50–950 ramp

primary
#B98EF9
secondary
#E9F6D5
accent
#E60089
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #B98EF9

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

Preview Lab → · Contrast checker → · Palette generator →

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