#B98EF6#B98EF6

#B98EF6 is a light, vivid violet. Relative luminance 0.363; OKLCH L 72.8% C 0.152 H 301.8°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#B98EF6
RGBrgb(185, 142, 246)
HSLhsl(265, 85%, 76%)
HSVhsv(265, 42%, 96%)
CMYKcmyk(24.8%, 42.3%, 0%, 3.5%)
CIE-LABlab(66.76, 36.73, -46.21)
CIE-LCHlch(66.76, 59.03, 308.48°)
OKLaboklab(72.83% 0.0801 -0.129)
OKLCHoklch(72.83% 0.152 301.8)
XYZxyz(46.3115, 36.3141, 91.7404)
Luminance0.3631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B98EF6 #CBF68E
analogous
#8E97F6 #B98EF6 #ED8EF6
triadic
#B98EF6 #F6B98E #8EF6B9
tetradic
#B98EF6 #F68E97 #CBF68E #8EF6ED
square
#B98EF6 #F68E97 #CBF68E #8EF6ED
split-complementary
#B98EF6 #F6ED8E #97F68E
monochromatic
#731DED #9655F1 #B98EF6 #DCC7FB #EDE3FD

Accessibility & contrast

On white

2.54
#B98EF6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.26
#B98EF6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B98EF6
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B98EF6#FFFFFF#000000##000000
##B98EF61.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#72A2FA
Deuteranopia (green-blind)
#7CA2F3
Tritanopia (blue-blind)
#AEA0B6
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b98ef6;
/* rgb */ color: rgb(185, 142, 246);
/* oklch */ color: oklch(72.8% 0.152 301.8);
Tailwind
colors: {
  custom: {
    50: '#d0aff9',
    500: '#b98ef6',
    950: '#000000',
  },
}
SCSS
$custom: #b98ef6;
$custom-light: #d0aff9;
$custom-dark: #000000;
JSON
{
  "hex": "#b98ef6",
  "rgb": {
    "r": 185,
    "g": 142,
    "b": 246
  },
  "hsl": {
    "h": 264.808,
    "s": 85.246,
    "l": 76.078
  },
  "oklch": {
    "l": 0.72826,
    "c": 0.15186,
    "h": 301.8
  },
  "luminance": 0.36314
}

Semantic roles & 50–950 ramp

primary
#B98EF6
secondary
#E8F5D6
accent
#E20486
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141017
muted
#827F85

Preview Lab

Preview with #B98EF6

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

Preview Lab → · Contrast checker → · Palette generator →

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