#B98EFE#B98EFE

#B98EFE is a light, vivid violet. Relative luminance 0.368; OKLCH L 73.2% C 0.162 H 300.2°. Best body text is #000000 at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#B98EFE
RGBrgb(185, 142, 254)
HSLhsl(263, 98%, 78%)
HSVhsv(263, 44%, 100%)
CMYKcmyk(27.2%, 44.1%, 0%, 0.4%)
CIE-LABlab(67.14, 38.61, -49.99)
CIE-LCHlch(67.14, 63.16, 307.68°)
OKLaboklab(73.24% 0.0813 -0.14)
OKLCHoklch(73.24% 0.162 300.2)
XYZxyz(47.5659, 36.8158, 98.3469)
Luminance0.3682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B98EFE #D3FE8E
analogous
#8E9BFE #B98EFE #F18EFE
triadic
#B98EFE #FEB98E #8EFEB9
tetradic
#B98EFE #FE8E9B #D3FE8E #8EFEF1
square
#B98EFE #FE8E9B #D3FE8E #8EFEF1
split-complementary
#B98EFE #FEF18E #9BFE8E
monochromatic
#6E15FD #9351FD #B98EFE #DFCBFF #ECE1FF

Accessibility & contrast

On white

2.51
#B98EFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.36
#B98EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B98EFE
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B98EFE#FFFFFF#000000##000000
##B98EFE1.002.518.368.36
#FFFFFF2.511.0021.0021.00
#0000008.3621.001.001.00
##0000008.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6EA3FF
Deuteranopia (green-blind)
#77A3FB
Tritanopia (blue-blind)
#ACA2BA
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b98efe;
/* rgb */ color: rgb(185, 142, 254);
/* oklch */ color: oklch(73.2% 0.162 300.2);
Tailwind
colors: {
  custom: {
    50: '#d0b0ff',
    500: '#b98efe',
    950: '#000000',
  },
}
SCSS
$custom: #b98efe;
$custom-light: #d0b0ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b98efe",
  "rgb": {
    "r": 185,
    "g": 142,
    "b": 254
  },
  "hsl": {
    "h": 263.036,
    "s": 98.246,
    "l": 77.647
  },
  "oklch": {
    "l": 0.73236,
    "c": 0.1619,
    "h": 300.2
  },
  "luminance": 0.36816
}

Semantic roles & 50–950 ramp

primary
#B98EFE
secondary
#EAF7D4
accent
#E6008D
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #B98EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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