#B98BFB#B98BFB

#B98BFB is a light, vivid violet. Relative luminance 0.357; OKLCH L 72.6% C 0.163 H 301.4°. Best body text is #000000 at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#B98BFB
RGBrgb(185, 139, 251)
HSLhsl(265, 93%, 76%)
HSVhsv(265, 45%, 98%)
CMYKcmyk(26.3%, 44.6%, 0%, 1.6%)
CIE-LABlab(66.32, 39.55, -49.63)
CIE-LCHlch(66.32, 63.47, 308.55°)
OKLaboklab(72.58% 0.0849 -0.139)
OKLCHoklch(72.58% 0.163 301.4)
XYZxyz(46.6489, 35.7445, 95.6898)
Luminance0.3574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B98BFB #CDFB8B
analogous
#8B95FB #B98BFB #F18BFB
triadic
#B98BFB #FBB98B #8BFBB9
tetradic
#B98BFB #FB8B95 #CDFB8B #8BFBF1
square
#B98BFB #FB8B95 #CDFB8B #8BFBF1
split-complementary
#B98BFB #FBF18B #95FB8B
monochromatic
#7215F7 #9550F9 #B98BFB #DDC6FD #EDE1FE

Accessibility & contrast

On white

2.58
#B98BFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.15
#B98BFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B98BFB
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B98BFB#FFFFFF#000000##000000
##B98BFB1.002.588.158.15
#FFFFFF2.581.0021.0021.00
#0000008.1521.001.001.00
##0000008.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6BA1FF
Deuteranopia (green-blind)
#76A1F8
Tritanopia (blue-blind)
#AD9FB7
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b98bfb;
/* rgb */ color: rgb(185, 139, 251);
/* oklch */ color: oklch(72.6% 0.163 301.4);
Tailwind
colors: {
  custom: {
    50: '#d0adfd',
    500: '#b98bfb',
    950: '#000000',
  },
}
SCSS
$custom: #b98bfb;
$custom-light: #d0adfd;
$custom-dark: #000000;
JSON
{
  "hex": "#b98bfb",
  "rgb": {
    "r": 185,
    "g": 139,
    "b": 251
  },
  "hsl": {
    "h": 264.643,
    "s": 93.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.72577,
    "c": 0.16284,
    "h": 301.4
  },
  "luminance": 0.35745
}

Semantic roles & 50–950 ramp

primary
#B98BFB
secondary
#E8F6D5
accent
#E60087
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #B98BFB

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

Preview Lab → · Contrast checker → · Palette generator →

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