#B98BF2#B98BF2

#B98BF2 is a light, vivid violet. Relative luminance 0.352; OKLCH L 72.1% C 0.152 H 303.4°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#B98BF2
RGBrgb(185, 139, 242)
HSLhsl(267, 80%, 75%)
HSVhsv(267, 43%, 95%)
CMYKcmyk(23.6%, 42.6%, 0%, 5.1%)
CIE-LABlab(65.90, 37.46, -45.37)
CIE-LCHlch(65.90, 58.84, 309.54°)
OKLaboklab(72.12% 0.0835 -0.1266)
OKLCHoklch(72.12% 0.152 303.4)
XYZxyz(45.2638, 35.1904, 88.3950)
Luminance0.3519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B98BF2 #C4F28B
analogous
#8B91F2 #B98BF2 #EC8BF2
triadic
#B98BF2 #F2B98B #8BF2B9
tetradic
#B98BF2 #F28B91 #C4F28B #8BF2EC
square
#B98BF2 #F28B91 #C4F28B #8BF2EC
split-complementary
#B98BF2 #F2EC8B #91F28B
monochromatic
#771DE6 #9854EC #B98BF2 #DAC2F8 #EEE3FC

Accessibility & contrast

On white

2.61
#B98BF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.04
#B98BF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B98BF2
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B98BF2#FFFFFF#000000##000000
##B98BF21.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#719FF6
Deuteranopia (green-blind)
#7BA0EF
Tritanopia (blue-blind)
#AF9CB3
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b98bf2;
/* rgb */ color: rgb(185, 139, 242);
/* oklch */ color: oklch(72.1% 0.152 303.4);
Tailwind
colors: {
  custom: {
    50: '#d0adf7',
    500: '#b98bf2',
    950: '#000000',
  },
}
SCSS
$custom: #b98bf2;
$custom-light: #d0adf7;
$custom-dark: #000000;
JSON
{
  "hex": "#b98bf2",
  "rgb": {
    "r": 185,
    "g": 139,
    "b": 242
  },
  "hsl": {
    "h": 266.796,
    "s": 79.845,
    "l": 74.706
  },
  "oklch": {
    "l": 0.72116,
    "c": 0.15166,
    "h": 303.4
  },
  "luminance": 0.3519
}

Semantic roles & 50–950 ramp

primary
#B98BF2
secondary
#E7F4D7
accent
#DC097E
background
#FCFAFF
surface
#F9F4FE
border
#D2CED6
text
#141017
muted
#827F85

Preview Lab

Preview with #B98BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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