#BA97FD#BA97FD

#BA97FD is a light, vivid violet. Relative luminance 0.397; OKLCH L 74.8% C 0.147 H 298.6°. Best body text is #000000 at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#BA97FD
RGBrgb(186, 151, 253)
HSLhsl(261, 96%, 79%)
HSVhsv(261, 40%, 99%)
CMYKcmyk(26.5%, 40.3%, 0%, 0.8%)
CIE-LABlab(69.23, 33.66, -46.14)
CIE-LCHlch(69.23, 57.12, 306.11°)
OKLaboklab(74.82% 0.0703 -0.1288)
OKLCHoklch(74.82% 0.147 298.6)
XYZxyz(49.0418, 39.6638, 97.9816)
Luminance0.3966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA97FD #DAFD97
analogous
#97A7FD #BA97FD #ED97FD
triadic
#BA97FD #FDBA97 #97FDBA
tetradic
#BA97FD #FD97A7 #DAFD97 #97FDED
square
#BA97FD #FD97A7 #DAFD97 #97FDED
split-complementary
#BA97FD #FDED97 #A7FD97
monochromatic
#6A1FFB #925BFC #BA97FD #E2D3FE #EBE1FE

Accessibility & contrast

On white

2.35
#BA97FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.93
#BA97FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA97FD
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA97FD#FFFFFF#000000##000000
##BA97FD1.002.358.938.93
#FFFFFF2.351.0021.0021.00
#0000008.9321.001.001.00
##0000008.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BA9FF
Deuteranopia (green-blind)
#82A8FA
Tritanopia (blue-blind)
#ADA9BE
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #ba97fd;
/* rgb */ color: rgb(186, 151, 253);
/* oklch */ color: oklch(74.8% 0.147 298.6);
Tailwind
colors: {
  custom: {
    50: '#d1b6fe',
    500: '#ba97fd',
    950: '#000000',
  },
}
SCSS
$custom: #ba97fd;
$custom-light: #d1b6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba97fd",
  "rgb": {
    "r": 186,
    "g": 151,
    "b": 253
  },
  "hsl": {
    "h": 260.588,
    "s": 96.226,
    "l": 79.216
  },
  "oklch": {
    "l": 0.74819,
    "c": 0.14675,
    "h": 298.6
  },
  "luminance": 0.39664
}

Semantic roles & 50–950 ramp

primary
#BA97FD
secondary
#EBF7D4
accent
#E60097
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141118
muted
#838086

Preview Lab

Preview with #BA97FD

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

Preview Lab → · Contrast checker → · Palette generator →

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