#B97AF8#B97AF8

#B97AF8 is a light, vivid violet. Relative luminance 0.310; OKLCH L 69.7% C 0.186 H 305.2°. Best body text is #000000 at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#B97AF8
RGBrgb(185, 122, 248)
HSLhsl(270, 90%, 73%)
HSVhsv(270, 51%, 97%)
CMYKcmyk(25.4%, 50.8%, 0%, 2.7%)
CIE-LABlab(62.52, 48.08, -54.02)
CIE-LCHlch(62.52, 72.32, 311.67°)
OKLaboklab(69.69% 0.1069 -0.1517)
OKLCHoklch(69.69% 0.186 305.2)
XYZxyz(43.9068, 31.0109, 92.4614)
Luminance0.3101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B97AF8 #B9F87A
analogous
#7A7AF8 #B97AF8 #F87AF8
triadic
#B97AF8 #F8B97A #7AF8B9
tetradic
#B97AF8 #F87A7A #B9F87A #7AF8F8
square
#B97AF8 #F87A7A #B9F87A #7AF8F8
split-complementary
#B97AF8 #F8F87A #7AF87A
monochromatic
#7C0CEB #9A40F5 #B97AF8 #D8B4FB #F0E2FD

Accessibility & contrast

On white

2.92
#B97AF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.20
#B97AF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B97AF8
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B97AF8#FFFFFF#000000##000000
##B97AF81.002.927.207.20
#FFFFFF2.921.0021.0021.00
#0000007.2021.001.001.00
##0000007.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5395FC
Deuteranopia (green-blind)
#6697F5
Tritanopia (blue-blind)
#AF91AE
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #b97af8;
/* rgb */ color: rgb(185, 122, 248);
/* oklch */ color: oklch(69.7% 0.186 305.2);
Tailwind
colors: {
  custom: {
    50: '#d1a2fb',
    500: '#b97af8',
    950: '#000000',
  },
}
SCSS
$custom: #b97af8;
$custom-light: #d1a2fb;
$custom-dark: #000000;
JSON
{
  "hex": "#b97af8",
  "rgb": {
    "r": 185,
    "g": 122,
    "b": 248
  },
  "hsl": {
    "h": 270,
    "s": 90,
    "l": 72.549
  },
  "oklch": {
    "l": 0.69687,
    "c": 0.18561,
    "h": 305.2
  },
  "luminance": 0.31011
}

Semantic roles & 50–950 ramp

primary
#B97AF8
secondary
#E6F6D5
accent
#E60073
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #B97AF8

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

Preview Lab → · Contrast checker → · Palette generator →

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