#B98AFA#B98AFA

#B98AFA is a light, vivid violet. Relative luminance 0.354; OKLCH L 72.4% C 0.163 H 301.8°. Best body text is #000000 at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#B98AFA
RGBrgb(185, 138, 250)
HSLhsl(265, 92%, 76%)
HSVhsv(265, 45%, 98%)
CMYKcmyk(26%, 44.8%, 0%, 2%)
CIE-LABlab(66.05, 39.87, -49.51)
CIE-LCHlch(66.05, 63.57, 308.84°)
OKLaboklab(72.36% 0.0861 -0.1386)
OKLCHoklch(72.36% 0.163 301.8)
XYZxyz(46.3475, 35.3933, 94.8138)
Luminance0.3539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B98AFA #CBFA8A
analogous
#8A93FA #B98AFA #F18AFA
triadic
#B98AFA #FAB98A #8AFAB9
tetradic
#B98AFA #FA8A93 #CBFA8A #8AFAF1
square
#B98AFA #FA8A93 #CBFA8A #8AFAF1
split-complementary
#B98AFA #FAF18A #93FA8A
monochromatic
#7315F5 #964FF7 #B98AFA #DCC5FD #EDE2FE

Accessibility & contrast

On white

2.60
#B98AFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.08
#B98AFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B98AFA
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B98AFA#FFFFFF#000000##000000
##B98AFA1.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6AA0FE
Deuteranopia (green-blind)
#75A0F7
Tritanopia (blue-blind)
#AD9EB6
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b98afa;
/* rgb */ color: rgb(185, 138, 250);
/* oklch */ color: oklch(72.4% 0.163 301.8);
Tailwind
colors: {
  custom: {
    50: '#d0adfc',
    500: '#b98afa',
    950: '#000000',
  },
}
SCSS
$custom: #b98afa;
$custom-light: #d0adfc;
$custom-dark: #000000;
JSON
{
  "hex": "#b98afa",
  "rgb": {
    "r": 185,
    "g": 138,
    "b": 250
  },
  "hsl": {
    "h": 265.179,
    "s": 91.803,
    "l": 76.078
  },
  "oklch": {
    "l": 0.72358,
    "c": 0.16317,
    "h": 301.8
  },
  "luminance": 0.35393
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B98AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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