#BA97FE#BA97FE

#BA97FE is a light, vivid violet. Relative luminance 0.397; OKLCH L 74.9% C 0.148 H 298.4°. Best body text is #000000 at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#BA97FE
RGBrgb(186, 151, 254)
HSLhsl(260, 98%, 79%)
HSVhsv(260, 41%, 100%)
CMYKcmyk(26.8%, 40.6%, 0%, 0.4%)
CIE-LABlab(69.28, 33.90, -46.61)
CIE-LCHlch(69.28, 57.64, 306.03°)
OKLaboklab(74.87% 0.0705 -0.1302)
OKLCHoklch(74.87% 0.148 298.4)
XYZxyz(49.2015, 39.7277, 98.8228)
Luminance0.3973 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA97FE #DBFE97
analogous
#97A8FE #BA97FE #ED97FE
triadic
#BA97FE #FEBA97 #97FEBA
tetradic
#BA97FE #FE97A8 #DBFE97 #97FEED
square
#BA97FE #FE97A8 #DBFE97 #97FEED
split-complementary
#BA97FE #FEED97 #A8FE97
monochromatic
#6A1EFD #925AFD #BA97FE #E2D4FF #EBE1FF

Accessibility & contrast

On white

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

On black

8.95
#BA97FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA97FE
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA97FE#FFFFFF#000000##000000
##BA97FE1.002.358.958.95
#FFFFFF2.351.0021.0021.00
#0000008.9521.001.001.00
##0000008.9521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba97fe;
/* rgb */ color: rgb(186, 151, 254);
/* oklch */ color: oklch(74.9% 0.148 298.4);
Tailwind
colors: {
  custom: {
    50: '#d1b6ff',
    500: '#ba97fe',
    950: '#000000',
  },
}
SCSS
$custom: #ba97fe;
$custom-light: #d1b6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba97fe",
  "rgb": {
    "r": 186,
    "g": 151,
    "b": 254
  },
  "hsl": {
    "h": 260.388,
    "s": 98.095,
    "l": 79.412
  },
  "oklch": {
    "l": 0.74869,
    "c": 0.14804,
    "h": 298.4
  },
  "luminance": 0.39728
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA97FE

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

Preview Lab → · Contrast checker → · Palette generator →

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