#B98DF2#B98DF2

#B98DF2 is a light, vivid violet. Relative luminance 0.358; OKLCH L 72.5% C 0.148 H 303.0°. Best body text is #000000 at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#B98DF2
RGBrgb(185, 141, 242)
HSLhsl(266, 80%, 75%)
HSVhsv(266, 42%, 95%)
CMYKcmyk(23.6%, 41.7%, 0%, 5.1%)
CIE-LABlab(66.35, 36.35, -44.66)
CIE-LCHlch(66.35, 57.59, 309.14°)
OKLaboklab(72.46% 0.0808 -0.1245)
OKLCHoklch(72.46% 0.148 303)
XYZxyz(45.5560, 35.7749, 88.4924)
Luminance0.3578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B98DF2 #C6F28D
analogous
#8D93F2 #B98DF2 #EC8DF2
triadic
#B98DF2 #F2B98D #8DF2B9
tetradic
#B98DF2 #F28D93 #C6F28D #8DF2EC
square
#B98DF2 #F28D93 #C6F28D #8DF2EC
split-complementary
#B98DF2 #F2EC8D #93F28D
monochromatic
#761FE5 #9756EC #B98DF2 #DBC4F8 #EEE4FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B98DF2#FFFFFF#000000##000000
##B98DF21.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)
#73A0F6
Deuteranopia (green-blind)
#7DA1EF
Tritanopia (blue-blind)
#AF9EB4
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b98df2;
/* rgb */ color: rgb(185, 141, 242);
/* oklch */ color: oklch(72.5% 0.148 303.0);
Tailwind
colors: {
  custom: {
    50: '#d0aff7',
    500: '#b98df2',
    950: '#000000',
  },
}
SCSS
$custom: #b98df2;
$custom-light: #d0aff7;
$custom-dark: #000000;
JSON
{
  "hex": "#b98df2",
  "rgb": {
    "r": 185,
    "g": 141,
    "b": 242
  },
  "hsl": {
    "h": 266.139,
    "s": 79.528,
    "l": 75.098
  },
  "oklch": {
    "l": 0.72455,
    "c": 0.14845,
    "h": 303
  },
  "luminance": 0.35775
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B98DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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