#B98AF7#B98AF7

#B98AF7 is a light, vivid violet. Relative luminance 0.352; OKLCH L 72.2% C 0.159 H 302.5°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#B98AF7
RGBrgb(185, 138, 247)
HSLhsl(266, 87%, 75%)
HSVhsv(266, 44%, 97%)
CMYKcmyk(25.1%, 44.1%, 0%, 3.1%)
CIE-LABlab(65.91, 39.17, -48.10)
CIE-LCHlch(65.91, 62.03, 309.16°)
OKLaboklab(72.2% 0.0857 -0.1345)
OKLCHoklch(72.2% 0.159 302.5)
XYZxyz(45.8809, 35.2066, 92.3561)
Luminance0.3521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B98AF7 #C8F78A
analogous
#8A91F7 #B98AF7 #F08AF7
triadic
#B98AF7 #F7B98A #8AF7B9
tetradic
#B98AF7 #F78A91 #C8F78A #8AF7F0
square
#B98AF7 #F78A91 #C8F78A #8AF7F0
split-complementary
#B98AF7 #F7F08A #91F78A
monochromatic
#7417EF #9751F3 #B98AF7 #DBC3FB #EEE2FD

Accessibility & contrast

On white

2.61
#B98AF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.04
#B98AF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B98AF7
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B98AF7#FFFFFF#000000##000000
##B98AF71.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9FFB
Deuteranopia (green-blind)
#77A0F4
Tritanopia (blue-blind)
#AE9DB5
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b98af7;
/* rgb */ color: rgb(185, 138, 247);
/* oklch */ color: oklch(72.2% 0.159 302.5);
Tailwind
colors: {
  custom: {
    50: '#d0adfa',
    500: '#b98af7',
    950: '#000000',
  },
}
SCSS
$custom: #b98af7;
$custom-light: #d0adfa;
$custom-dark: #000000;
JSON
{
  "hex": "#b98af7",
  "rgb": {
    "r": 185,
    "g": 138,
    "b": 247
  },
  "hsl": {
    "h": 265.872,
    "s": 87.2,
    "l": 75.49
  },
  "oklch": {
    "l": 0.72202,
    "c": 0.15946,
    "h": 302.5
  },
  "luminance": 0.35207
}

Semantic roles & 50–950 ramp

primary
#B98AF7
secondary
#E8F5D6
accent
#E40282
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #B98AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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