#B97AFE#B97AFE

#B97AFE is a light, vivid violet. Relative luminance 0.314; OKLCH L 70.0% C 0.193 H 303.9°. Best body text is #000000 at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#B97AFE
RGBrgb(185, 122, 254)
HSLhsl(269, 99%, 74%)
HSVhsv(269, 52%, 100%)
CMYKcmyk(27.2%, 52%, 0%, 0.4%)
CIE-LABlab(62.83, 49.47, -56.81)
CIE-LCHlch(62.83, 75.33, 311.05°)
OKLaboklab(70.03% 0.1074 -0.1599)
OKLCHoklch(70.03% 0.193 303.9)
XYZxyz(44.8526, 31.3892, 97.4425)
Luminance0.3139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B97AFE #BFFE7A
analogous
#7A7DFE #B97AFE #FB7AFE
triadic
#B97AFE #FEB97A #7AFEB9
tetradic
#B97AFE #FE7A7D #BFFE7A #7AFEFB
square
#B97AFE #FE7A7D #BFFE7A #7AFEFB
split-complementary
#B97AFE #FEFB7A #7DFE7A
monochromatic
#7902FC #993DFE #B97AFE #D9B7FE #EFE1FF

Accessibility & contrast

On white

2.89
#B97AFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.28
#B97AFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B97AFE
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B97AFE#FFFFFF#000000##000000
##B97AFE1.002.897.287.28
#FFFFFF2.891.0021.0021.00
#0000007.2821.001.001.00
##0000007.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E96FF
Deuteranopia (green-blind)
#6198FB
Tritanopia (blue-blind)
#AD92B1
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #b97afe;
/* rgb */ color: rgb(185, 122, 254);
/* oklch */ color: oklch(70.0% 0.193 303.9);
Tailwind
colors: {
  custom: {
    50: '#d1a2ff',
    500: '#b97afe',
    950: '#000000',
  },
}
SCSS
$custom: #b97afe;
$custom-light: #d1a2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b97afe",
  "rgb": {
    "r": 185,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 268.636,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.70026,
    "c": 0.19259,
    "h": 303.9
  },
  "luminance": 0.31389
}

Semantic roles & 50–950 ramp

primary
#B97AFE
secondary
#E6F7D4
accent
#E60078
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86

Preview Lab

Preview with #B97AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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