#B98DFD#B98DFD

#B98DFD is a light, vivid violet. Relative luminance 0.365; OKLCH L 73.0% C 0.162 H 300.6°. Best body text is #000000 at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#B98DFD
RGBrgb(185, 141, 253)
HSLhsl(264, 97%, 77%)
HSVhsv(264, 44%, 99%)
CMYKcmyk(26.9%, 44.3%, 0%, 0.8%)
CIE-LABlab(66.87, 38.93, -49.87)
CIE-LCHlch(66.87, 63.26, 307.97°)
OKLaboklab(73.02% 0.0825 -0.1397)
OKLCHoklch(73.02% 0.162 300.6)
XYZxyz(47.2580, 36.4557, 97.4564)
Luminance0.3646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B98DFD #D1FD8D
analogous
#8D99FD #B98DFD #F18DFD
triadic
#B98DFD #FDB98D #8DFDB9
tetradic
#B98DFD #FD8D99 #D1FD8D #8DFDF1
square
#B98DFD #FD8D99 #D1FD8D #8DFDF1
split-complementary
#B98DFD #FDF18D #99FD8D
monochromatic
#6F15FB #9451FC #B98DFD #DEC9FE #EDE1FE

Accessibility & contrast

On white

2.53
#B98DFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.29
#B98DFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B98DFD
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B98DFD#FFFFFF#000000##000000
##B98DFD1.002.538.298.29
#FFFFFF2.531.0021.0021.00
#0000008.2921.001.001.00
##0000008.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6DA2FF
Deuteranopia (green-blind)
#77A2FA
Tritanopia (blue-blind)
#ACA1B9
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b98dfd;
/* rgb */ color: rgb(185, 141, 253);
/* oklch */ color: oklch(73.0% 0.162 300.6);
Tailwind
colors: {
  custom: {
    50: '#d0affe',
    500: '#b98dfd',
    950: '#000000',
  },
}
SCSS
$custom: #b98dfd;
$custom-light: #d0affe;
$custom-dark: #000000;
JSON
{
  "hex": "#b98dfd",
  "rgb": {
    "r": 185,
    "g": 141,
    "b": 253
  },
  "hsl": {
    "h": 263.571,
    "s": 96.552,
    "l": 77.255
  },
  "oklch": {
    "l": 0.73016,
    "c": 0.16221,
    "h": 300.6
  },
  "luminance": 0.36456
}

Semantic roles & 50–950 ramp

primary
#B98DFD
secondary
#E9F7D4
accent
#E6008B
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #B98DFD

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

Preview Lab → · Contrast checker → · Palette generator →

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