#BA97FB#BA97FB

#BA97FB is a light, vivid violet. Relative luminance 0.395; OKLCH L 74.7% C 0.144 H 299.0°. Best body text is #000000 at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#BA97FB
RGBrgb(186, 151, 251)
HSLhsl(261, 93%, 79%)
HSVhsv(261, 40%, 98%)
CMYKcmyk(25.9%, 39.8%, 0%, 1.6%)
CIE-LABlab(69.14, 33.19, -45.20)
CIE-LCHlch(69.14, 56.07, 306.29°)
OKLaboklab(74.72% 0.0699 -0.1261)
OKLCHoklch(74.72% 0.144 299)
XYZxyz(48.7249, 39.5370, 96.3125)
Luminance0.3954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA97FB #D8FB97
analogous
#97A6FB #BA97FB #EC97FB
triadic
#BA97FB #FBBA97 #97FBBA
tetradic
#BA97FB #FB97A6 #D8FB97 #97FBEC
square
#BA97FB #FB97A6 #D8FB97 #97FBEC
split-complementary
#BA97FB #FBEC97 #A6FB97
monochromatic
#6C21F6 #935CF9 #BA97FB #E1D2FD #EBE2FE

Accessibility & contrast

On white

2.36
#BA97FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.91
#BA97FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA97FB
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA97FB#FFFFFF#000000##000000
##BA97FB1.002.368.918.91
#FFFFFF2.361.0021.0021.00
#0000008.9121.001.001.00
##0000008.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7CA9FF
Deuteranopia (green-blind)
#83A8F8
Tritanopia (blue-blind)
#ADA8BD
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #ba97fb;
/* rgb */ color: rgb(186, 151, 251);
/* oklch */ color: oklch(74.7% 0.144 299.0);
Tailwind
colors: {
  custom: {
    50: '#d0b6fd',
    500: '#ba97fb',
    950: '#000000',
  },
}
SCSS
$custom: #ba97fb;
$custom-light: #d0b6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba97fb",
  "rgb": {
    "r": 186,
    "g": 151,
    "b": 251
  },
  "hsl": {
    "h": 261,
    "s": 92.593,
    "l": 78.824
  },
  "oklch": {
    "l": 0.74721,
    "c": 0.14417,
    "h": 299
  },
  "luminance": 0.39537
}

Semantic roles & 50–950 ramp

primary
#BA97FB
secondary
#EAF6D5
accent
#E60095
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141117
muted
#838085

Preview Lab

Preview with #BA97FB

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

Preview Lab → · Contrast checker → · Palette generator →

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