#B98EFA#B98EFA

#B98EFA is a light, vivid violet. Relative luminance 0.366; OKLCH L 73.0% C 0.157 H 301.0°. Best body text is #000000 at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#B98EFA
RGBrgb(185, 142, 250)
HSLhsl(264, 92%, 77%)
HSVhsv(264, 43%, 98%)
CMYKcmyk(26%, 43.2%, 0%, 2%)
CIE-LABlab(66.95, 37.67, -48.10)
CIE-LCHlch(66.95, 61.10, 308.06°)
OKLaboklab(73.03% 0.0807 -0.1345)
OKLCHoklch(73.03% 0.157 301)
XYZxyz(46.9320, 36.5623, 95.0086)
Luminance0.3656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B98EFA #CFFA8E
analogous
#8E99FA #B98EFA #EF8EFA
triadic
#B98EFA #FAB98E #8EFAB9
tetradic
#B98EFA #FA8E99 #CFFA8E #8EFAEF
square
#B98EFA #FA8E99 #CFFA8E #8EFAEF
split-complementary
#B98EFA #FAEF8E #99FA8E
monochromatic
#7019F5 #9553F7 #B98EFA #DDC9FD #EDE2FE

Accessibility & contrast

On white

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

On black

8.31
#B98EFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B98EFA
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B98EFA#FFFFFF#000000##000000
##B98EFA1.002.538.318.31
#FFFFFF2.531.0021.0021.00
#0000008.3121.001.001.00
##0000008.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#70A2FE
Deuteranopia (green-blind)
#7AA2F7
Tritanopia (blue-blind)
#ADA1B8
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b98efa;
/* rgb */ color: rgb(185, 142, 250);
/* oklch */ color: oklch(73.0% 0.157 301.0);
Tailwind
colors: {
  custom: {
    50: '#d0affc',
    500: '#b98efa',
    950: '#000000',
  },
}
SCSS
$custom: #b98efa;
$custom-light: #d0affc;
$custom-dark: #000000;
JSON
{
  "hex": "#b98efa",
  "rgb": {
    "r": 185,
    "g": 142,
    "b": 250
  },
  "hsl": {
    "h": 263.889,
    "s": 91.525,
    "l": 76.863
  },
  "oklch": {
    "l": 0.7303,
    "c": 0.15689,
    "h": 301
  },
  "luminance": 0.36562
}

Semantic roles & 50–950 ramp

primary
#B98EFA
secondary
#E9F6D5
accent
#E6008A
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #B98EFA

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

Preview Lab → · Contrast checker → · Palette generator →

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