#B98BF3#B98BF3

#B98BF3 is a light, vivid violet. Relative luminance 0.353; OKLCH L 72.2% C 0.153 H 303.2°. Best body text is #000000 at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#B98BF3
RGBrgb(185, 139, 243)
HSLhsl(267, 81%, 75%)
HSVhsv(267, 43%, 95%)
CMYKcmyk(23.9%, 42.8%, 0%, 4.7%)
CIE-LABlab(65.94, 37.69, -45.85)
CIE-LCHlch(65.94, 59.35, 309.42°)
OKLaboklab(72.17% 0.0837 -0.128)
OKLCHoklch(72.17% 0.153 303.2)
XYZxyz(45.4144, 35.2507, 89.1882)
Luminance0.3525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B98BF3 #C5F38B
analogous
#8B91F3 #B98BF3 #ED8BF3
triadic
#B98BF3 #F3B98B #8BF3B9
tetradic
#B98BF3 #F38B91 #C5F38B #8BF3ED
square
#B98BF3 #F38B91 #C5F38B #8BF3ED
split-complementary
#B98BF3 #F3ED8B #91F38B
monochromatic
#761CE8 #9854ED #B98BF3 #DAC2F9 #EEE3FC

Accessibility & contrast

On white

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

On black

8.05
#B98BF3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B98BF3
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B98BF3#FFFFFF#000000##000000
##B98BF31.002.618.058.05
#FFFFFF2.611.0021.0021.00
#0000008.0521.001.001.00
##0000008.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#709FF7
Deuteranopia (green-blind)
#7AA0F0
Tritanopia (blue-blind)
#AF9CB3
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b98bf3;
/* rgb */ color: rgb(185, 139, 243);
/* oklch */ color: oklch(72.2% 0.153 303.2);
Tailwind
colors: {
  custom: {
    50: '#d0adf7',
    500: '#b98bf3',
    950: '#000000',
  },
}
SCSS
$custom: #b98bf3;
$custom-light: #d0adf7;
$custom-dark: #000000;
JSON
{
  "hex": "#b98bf3",
  "rgb": {
    "r": 185,
    "g": 139,
    "b": 243
  },
  "hsl": {
    "h": 266.538,
    "s": 81.25,
    "l": 74.902
  },
  "oklch": {
    "l": 0.72166,
    "c": 0.15291,
    "h": 303.2
  },
  "luminance": 0.35251
}

Semantic roles & 50–950 ramp

primary
#B98BF3
secondary
#E7F4D7
accent
#DE087F
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141017
muted
#827F85

Preview Lab

Preview with #B98BF3

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

Preview Lab → · Contrast checker → · Palette generator →

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