#B97AF5#B97AF5

#B97AF5 is a light, vivid violet. Relative luminance 0.308; OKLCH L 69.5% C 0.182 H 305.9°. Best body text is #000000 at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#B97AF5
RGBrgb(185, 122, 245)
HSLhsl(271, 86%, 72%)
HSVhsv(271, 50%, 96%)
CMYKcmyk(24.5%, 50.2%, 0%, 3.9%)
CIE-LABlab(62.36, 47.40, -52.61)
CIE-LCHlch(62.36, 70.81, 312.01°)
OKLaboklab(69.52% 0.1067 -0.1476)
OKLCHoklch(69.52% 0.182 305.9)
XYZxyz(43.4451, 30.8263, 90.0298)
Luminance0.3083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B97AF5 #B6F57A
analogous
#7C7AF5 #B97AF5 #F57AF3
triadic
#B97AF5 #F5B97A #7AF5B9
tetradic
#B97AF5 #F57C7A #B6F57A #7AF3F5
square
#B97AF5 #F57C7A #B6F57A #7AF3F5
split-complementary
#B97AF5 #F3F57A #7AF57C
monochromatic
#7D11E3 #9B41F1 #B97AF5 #D7B3F9 #F0E3FD

Accessibility & contrast

On white

2.93
#B97AF5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.17
#B97AF5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B97AF5
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B97AF5#FFFFFF#000000##000000
##B97AF51.002.937.177.17
#FFFFFF2.931.0021.0021.00
#0000007.1721.001.001.00
##0000007.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5595F9
Deuteranopia (green-blind)
#6897F2
Tritanopia (blue-blind)
#AF90AC
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #b97af5;
/* rgb */ color: rgb(185, 122, 245);
/* oklch */ color: oklch(69.5% 0.182 305.9);
Tailwind
colors: {
  custom: {
    50: '#d1a2f9',
    500: '#b97af5',
    950: '#000000',
  },
}
SCSS
$custom: #b97af5;
$custom-light: #d1a2f9;
$custom-dark: #000000;
JSON
{
  "hex": "#b97af5",
  "rgb": {
    "r": 185,
    "g": 122,
    "b": 245
  },
  "hsl": {
    "h": 270.732,
    "s": 86.014,
    "l": 71.961
  },
  "oklch": {
    "l": 0.69521,
    "c": 0.18212,
    "h": 305.9
  },
  "luminance": 0.30826
}

Semantic roles & 50–950 ramp

primary
#B97AF5
secondary
#E5F5D6
accent
#E30370
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #B97AF5

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

Preview Lab → · Contrast checker → · Palette generator →

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