#B98DF8#B98DF8

#B98DF8 is a light, vivid violet. Relative luminance 0.361; OKLCH L 72.8% C 0.156 H 301.6°. Best body text is #000000 at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#B98DF8
RGBrgb(185, 141, 248)
HSLhsl(265, 88%, 76%)
HSVhsv(265, 43%, 97%)
CMYKcmyk(25.4%, 43.1%, 0%, 2.7%)
CIE-LABlab(66.63, 37.75, -47.51)
CIE-LCHlch(66.63, 60.68, 308.47°)
OKLaboklab(72.76% 0.0818 -0.1328)
OKLCHoklch(72.76% 0.156 301.6)
XYZxyz(46.4720, 36.1413, 93.3164)
Luminance0.3614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B98DF8 #CCF88D
analogous
#8D97F8 #B98DF8 #EF8DF8
triadic
#B98DF8 #F8B98D #8DF8B9
tetradic
#B98DF8 #F88D97 #CCF88D #8DF8EF
square
#B98DF8 #F88D97 #CCF88D #8DF8EF
split-complementary
#B98DF8 #F8EF8D #97F88D
monochromatic
#721AF1 #9653F4 #B98DF8 #DCC7FC #EDE2FD

Accessibility & contrast

On white

2.55
#B98DF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.23
#B98DF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B98DF8
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B98DF8#FFFFFF#000000##000000
##B98DF81.002.558.238.23
#FFFFFF2.551.0021.0021.00
#0000008.2321.001.001.00
##0000008.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#70A1FC
Deuteranopia (green-blind)
#7AA2F5
Tritanopia (blue-blind)
#AE9FB7
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b98df8;
/* rgb */ color: rgb(185, 141, 248);
/* oklch */ color: oklch(72.8% 0.156 301.6);
Tailwind
colors: {
  custom: {
    50: '#d0affb',
    500: '#b98df8',
    950: '#000000',
  },
}
SCSS
$custom: #b98df8;
$custom-light: #d0affb;
$custom-dark: #000000;
JSON
{
  "hex": "#b98df8",
  "rgb": {
    "r": 185,
    "g": 141,
    "b": 248
  },
  "hsl": {
    "h": 264.673,
    "s": 88.43,
    "l": 76.275
  },
  "oklch": {
    "l": 0.72758,
    "c": 0.15596,
    "h": 301.6
  },
  "luminance": 0.36141
}

Semantic roles & 50–950 ramp

primary
#B98DF8
secondary
#E8F5D6
accent
#E50087
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #B98DF8

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

Preview Lab → · Contrast checker → · Palette generator →

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