#B97AFA#B97AFA

#B97AFA is a light, vivid violet. Relative luminance 0.311; OKLCH L 69.8% C 0.188 H 304.7°. Best body text is #000000 at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#B97AFA
RGBrgb(185, 122, 250)
HSLhsl(270, 93%, 73%)
HSVhsv(270, 51%, 98%)
CMYKcmyk(26%, 51.2%, 0%, 2%)
CIE-LABlab(62.62, 48.54, -54.95)
CIE-LCHlch(62.62, 73.32, 311.46°)
OKLaboklab(69.8% 0.1071 -0.1544)
OKLCHoklch(69.8% 0.188 304.7)
XYZxyz(44.2187, 31.1357, 94.1042)
Luminance0.3114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B97AFA #BBFA7A
analogous
#7A7BFA #B97AFA #F97AFA
triadic
#B97AFA #FAB97A #7AFAB9
tetradic
#B97AFA #FA7A7B #BBFA7A #7AFAF9
square
#B97AFA #FA7A7B #BBFA7A #7AFAF9
split-complementary
#B97AFA #FAF97A #7BFA7A
monochromatic
#7B09F1 #9A3FF8 #B97AFA #D8B5FC #EFE2FE

Accessibility & contrast

On white

2.91
#B97AFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.23
#B97AFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B97AFA
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B97AFA#FFFFFF#000000##000000
##B97AFA1.002.917.237.23
#FFFFFF2.911.0021.0021.00
#0000007.2321.001.001.00
##0000007.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5196FE
Deuteranopia (green-blind)
#6498F7
Tritanopia (blue-blind)
#AE91AF
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #b97afa;
/* rgb */ color: rgb(185, 122, 250);
/* oklch */ color: oklch(69.8% 0.188 304.7);
Tailwind
colors: {
  custom: {
    50: '#d1a2fc',
    500: '#b97afa',
    950: '#000000',
  },
}
SCSS
$custom: #b97afa;
$custom-light: #d1a2fc;
$custom-dark: #000000;
JSON
{
  "hex": "#b97afa",
  "rgb": {
    "r": 185,
    "g": 122,
    "b": 250
  },
  "hsl": {
    "h": 269.531,
    "s": 92.754,
    "l": 72.941
  },
  "oklch": {
    "l": 0.69799,
    "c": 0.18794,
    "h": 304.7
  },
  "luminance": 0.31135
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B97AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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