#B98EFB#B98EFB

#B98EFB is a light, vivid violet. Relative luminance 0.366; OKLCH L 73.1% C 0.158 H 300.8°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#B98EFB
RGBrgb(185, 142, 251)
HSLhsl(264, 93%, 77%)
HSVhsv(264, 43%, 98%)
CMYKcmyk(26.3%, 43.4%, 0%, 1.6%)
CIE-LABlab(66.99, 37.90, -48.58)
CIE-LCHlch(66.99, 61.61, 307.96°)
OKLaboklab(73.08% 0.0809 -0.1359)
OKLCHoklch(73.08% 0.158 300.8)
XYZxyz(47.0892, 36.6252, 95.8366)
Luminance0.3663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B98EFB #D0FB8E
analogous
#8E9AFB #B98EFB #F08EFB
triadic
#B98EFB #FBB98E #8EFBB9
tetradic
#B98EFB #FB8E9A #D0FB8E #8EFBF0
square
#B98EFB #FB8E9A #D0FB8E #8EFBF0
split-complementary
#B98EFB #FBF08E #9AFB8E
monochromatic
#7018F7 #9453F9 #B98EFB #DEC9FD #EDE1FE

Accessibility & contrast

On white

2.52
#B98EFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.32
#B98EFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B98EFB
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B98EFB#FFFFFF#000000##000000
##B98EFB1.002.528.328.32
#FFFFFF2.521.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#70A3FF
Deuteranopia (green-blind)
#79A2F8
Tritanopia (blue-blind)
#ADA1B9
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b98efb;
/* rgb */ color: rgb(185, 142, 251);
/* oklch */ color: oklch(73.1% 0.158 300.8);
Tailwind
colors: {
  custom: {
    50: '#d0affd',
    500: '#b98efb',
    950: '#000000',
  },
}
SCSS
$custom: #b98efb;
$custom-light: #d0affd;
$custom-dark: #000000;
JSON
{
  "hex": "#b98efb",
  "rgb": {
    "r": 185,
    "g": 142,
    "b": 251
  },
  "hsl": {
    "h": 263.67,
    "s": 93.162,
    "l": 77.059
  },
  "oklch": {
    "l": 0.73081,
    "c": 0.15814,
    "h": 300.8
  },
  "luminance": 0.36625
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B98EFB

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

Preview Lab → · Contrast checker → · Palette generator →

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