#B97AFD#B97AFD

#B97AFD is a light, vivid violet. Relative luminance 0.313; OKLCH L 70.0% C 0.191 H 304.1°. Best body text is #000000 at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#B97AFD
RGBrgb(185, 122, 253)
HSLhsl(269, 97%, 74%)
HSVhsv(269, 52%, 99%)
CMYKcmyk(26.9%, 51.8%, 0%, 0.8%)
CIE-LABlab(62.78, 49.23, -56.35)
CIE-LCHlch(62.78, 74.83, 311.15°)
OKLaboklab(69.97% 0.1073 -0.1585)
OKLCHoklch(69.97% 0.191 304.1)
XYZxyz(44.6929, 31.3254, 96.6013)
Luminance0.3132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B97AFD #BEFD7A
analogous
#7A7CFD #B97AFD #FA7AFD
triadic
#B97AFD #FDB97A #7AFDB9
tetradic
#B97AFD #FD7A7C #BEFD7A #7AFDFA
square
#B97AFD #FD7A7C #BEFD7A #7AFDFA
split-complementary
#B97AFD #FDFA7A #7CFD7A
monochromatic
#7A04F9 #993EFC #B97AFD #D9B6FE #EFE1FF

Accessibility & contrast

On white

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

On black

7.26
#B97AFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B97AFD
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B97AFD#FFFFFF#000000##000000
##B97AFD1.002.897.267.26
#FFFFFF2.891.0021.0021.00
#0000007.2621.001.001.00
##0000007.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F96FF
Deuteranopia (green-blind)
#6298FA
Tritanopia (blue-blind)
#AD92B0
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #b97afd;
/* rgb */ color: rgb(185, 122, 253);
/* oklch */ color: oklch(70.0% 0.191 304.1);
Tailwind
colors: {
  custom: {
    50: '#d1a2ff',
    500: '#b97afd',
    950: '#000000',
  },
}
SCSS
$custom: #b97afd;
$custom-light: #d1a2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b97afd",
  "rgb": {
    "r": 185,
    "g": 122,
    "b": 253
  },
  "hsl": {
    "h": 268.855,
    "s": 97.037,
    "l": 73.529
  },
  "oklch": {
    "l": 0.69969,
    "c": 0.19142,
    "h": 304.1
  },
  "luminance": 0.31325
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B97AFD

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

Preview Lab → · Contrast checker → · Palette generator →

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