#B98CFA#B98CFA

#B98CFA is a light, vivid violet. Relative luminance 0.360; OKLCH L 72.7% C 0.160 H 301.4°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#B98CFA
RGBrgb(185, 140, 250)
HSLhsl(265, 92%, 76%)
HSVhsv(265, 44%, 98%)
CMYKcmyk(26%, 44%, 0%, 2%)
CIE-LABlab(66.50, 38.77, -48.81)
CIE-LCHlch(66.50, 62.33, 308.46°)
OKLaboklab(72.69% 0.0834 -0.1366)
OKLCHoklch(72.69% 0.16 301.4)
XYZxyz(46.6371, 35.9725, 94.9103)
Luminance0.3597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B98CFA #CDFA8C
analogous
#8C96FA #B98CFA #F08CFA
triadic
#B98CFA #FAB98C #8CFAB9
tetradic
#B98CFA #FA8C96 #CDFA8C #8CFAF0
square
#B98CFA #FA8C96 #CDFA8C #8CFAF0
split-complementary
#B98CFA #FAF08C #96FA8C
monochromatic
#7217F5 #9551F7 #B98CFA #DDC7FD #EDE2FE

Accessibility & contrast

On white

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

On black

8.19
#B98CFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B98CFA
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B98CFA#FFFFFF#000000##000000
##B98CFA1.002.568.198.19
#FFFFFF2.561.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6DA1FE
Deuteranopia (green-blind)
#77A1F7
Tritanopia (blue-blind)
#AD9FB7
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b98cfa;
/* rgb */ color: rgb(185, 140, 250);
/* oklch */ color: oklch(72.7% 0.160 301.4);
Tailwind
colors: {
  custom: {
    50: '#d0aefc',
    500: '#b98cfa',
    950: '#000000',
  },
}
SCSS
$custom: #b98cfa;
$custom-light: #d0aefc;
$custom-dark: #000000;
JSON
{
  "hex": "#b98cfa",
  "rgb": {
    "r": 185,
    "g": 140,
    "b": 250
  },
  "hsl": {
    "h": 264.545,
    "s": 91.667,
    "l": 76.471
  },
  "oklch": {
    "l": 0.72692,
    "c": 0.16003,
    "h": 301.4
  },
  "luminance": 0.35973
}

Semantic roles & 50–950 ramp

primary
#B98CFA
secondary
#E8F6D5
accent
#E60088
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #B98CFA

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

Preview Lab → · Contrast checker → · Palette generator →

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