#B98EF2#B98EF2

#B98EF2 is a light, vivid violet. Relative luminance 0.361; OKLCH L 72.6% C 0.147 H 302.7°. Best body text is #000000 at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#B98EF2
RGBrgb(185, 142, 242)
HSLhsl(266, 79%, 75%)
HSVhsv(266, 41%, 95%)
CMYKcmyk(23.6%, 41.3%, 0%, 5.1%)
CIE-LABlab(66.57, 35.80, -44.31)
CIE-LCHlch(66.57, 56.96, 308.93°)
OKLaboklab(72.63% 0.0794 -0.1235)
OKLCHoklch(72.63% 0.147 302.7)
XYZxyz(45.7041, 36.0711, 88.5418)
Luminance0.3607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B98EF2 #C7F28E
analogous
#8E95F2 #B98EF2 #EB8EF2
triadic
#B98EF2 #F2B98E #8EF2B9
tetradic
#B98EF2 #F28E95 #C7F28E #8EF2EB
square
#B98EF2 #F28E95 #C7F28E #8EF2EB
split-complementary
#B98EF2 #F2EB8E #95F28E
monochromatic
#7520E5 #9757EC #B98EF2 #DBC5F8 #EEE4FC

Accessibility & contrast

On white

2.56
#B98EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.21
#B98EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B98EF2
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B98EF2#FFFFFF#000000##000000
##B98EF21.002.568.218.21
#FFFFFF2.561.0021.0021.00
#0000008.2121.001.001.00
##0000008.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#75A1F6
Deuteranopia (green-blind)
#7EA2EF
Tritanopia (blue-blind)
#AF9FB4
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b98ef2;
/* rgb */ color: rgb(185, 142, 242);
/* oklch */ color: oklch(72.6% 0.147 302.7);
Tailwind
colors: {
  custom: {
    50: '#d0aff7',
    500: '#b98ef2',
    950: '#000000',
  },
}
SCSS
$custom: #b98ef2;
$custom-light: #d0aff7;
$custom-dark: #000000;
JSON
{
  "hex": "#b98ef2",
  "rgb": {
    "r": 185,
    "g": 142,
    "b": 242
  },
  "hsl": {
    "h": 265.8,
    "s": 79.365,
    "l": 75.294
  },
  "oklch": {
    "l": 0.72626,
    "c": 0.14684,
    "h": 302.7
  },
  "luminance": 0.36071
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B98EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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