#BA97FF#BA97FF

#BA97FF is a light, vivid violet. Relative luminance 0.398; OKLCH L 74.9% C 0.149 H 298.2°. Best body text is #000000 at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#BA97FF
RGBrgb(186, 151, 255)
HSLhsl(260, 100%, 80%)
HSVhsv(260, 41%, 100%)
CMYKcmyk(27.1%, 40.8%, 0%, 0%)
CIE-LABlab(69.32, 34.14, -47.09)
CIE-LCHlch(69.32, 58.16, 305.94°)
OKLaboklab(74.92% 0.0706 -0.1316)
OKLCHoklch(74.92% 0.149 298.2)
XYZxyz(49.3621, 39.7919, 99.6684)
Luminance0.3979 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA97FF #DCFF97
analogous
#97A8FF #BA97FF #EE97FF
triadic
#BA97FF #FFBA97 #97FFBA
tetradic
#BA97FF #FF97A8 #DCFF97 #97FFEE
square
#BA97FF #FF97A8 #DCFF97 #97FFEE
split-complementary
#BA97FF #FFEE97 #A8FF97
monochromatic
#691DFF #915AFF #BA97FF #E3D4FF #EBE0FF

Accessibility & contrast

On white

2.34
#BA97FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.96
#BA97FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA97FF
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA97FF#FFFFFF#000000##000000
##BA97FF1.002.348.968.96
#FFFFFF2.341.0021.0021.00
#0000008.9621.001.001.00
##0000008.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA9FF
Deuteranopia (green-blind)
#81A8FC
Tritanopia (blue-blind)
#ACA9BF
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #ba97ff;
/* rgb */ color: rgb(186, 151, 255);
/* oklch */ color: oklch(74.9% 0.149 298.2);
Tailwind
colors: {
  custom: {
    50: '#d1b6ff',
    500: '#ba97ff',
    950: '#000000',
  },
}
SCSS
$custom: #ba97ff;
$custom-light: #d1b6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba97ff",
  "rgb": {
    "r": 186,
    "g": 151,
    "b": 255
  },
  "hsl": {
    "h": 260.192,
    "s": 100,
    "l": 79.608
  },
  "oklch": {
    "l": 0.74919,
    "c": 0.14933,
    "h": 298.2
  },
  "luminance": 0.39792
}

Semantic roles & 50–950 ramp

primary
#BA97FF
secondary
#EBF7D4
accent
#E60098
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141118
muted
#838086

Preview Lab

Preview with #BA97FF

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

Preview Lab → · Contrast checker → · Palette generator →

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