#BA97FC#BA97FC

#BA97FC is a light, vivid violet. Relative luminance 0.396; OKLCH L 74.8% C 0.145 H 298.8°. Best body text is #000000 at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#BA97FC
RGBrgb(186, 151, 252)
HSLhsl(261, 94%, 79%)
HSVhsv(261, 40%, 99%)
CMYKcmyk(26.2%, 40.1%, 0%, 1.2%)
CIE-LABlab(69.18, 33.43, -45.67)
CIE-LCHlch(69.18, 56.60, 306.20°)
OKLaboklab(74.77% 0.0701 -0.1275)
OKLCHoklch(74.77% 0.145 298.8)
XYZxyz(48.8829, 39.6003, 97.1449)
Luminance0.3960 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA97FC #D9FC97
analogous
#97A7FC #BA97FC #ED97FC
triadic
#BA97FC #FCBA97 #97FCBA
tetradic
#BA97FC #FC97A7 #D9FC97 #97FCED
square
#BA97FC #FC97A7 #D9FC97 #97FCED
split-complementary
#BA97FC #FCED97 #A7FC97
monochromatic
#6B20F9 #935CFA #BA97FC #E1D2FE #EBE1FE

Accessibility & contrast

On white

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

On black

8.92
#BA97FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA97FC
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA97FC#FFFFFF#000000##000000
##BA97FC1.002.358.928.92
#FFFFFF2.351.0021.0021.00
#0000008.9221.001.001.00
##0000008.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7CA9FF
Deuteranopia (green-blind)
#82A8F9
Tritanopia (blue-blind)
#ADA8BE
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #ba97fc;
/* rgb */ color: rgb(186, 151, 252);
/* oklch */ color: oklch(74.8% 0.145 298.8);
Tailwind
colors: {
  custom: {
    50: '#d1b6fe',
    500: '#ba97fc',
    950: '#000000',
  },
}
SCSS
$custom: #ba97fc;
$custom-light: #d1b6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba97fc",
  "rgb": {
    "r": 186,
    "g": 151,
    "b": 252
  },
  "hsl": {
    "h": 260.792,
    "s": 94.393,
    "l": 79.02
  },
  "oklch": {
    "l": 0.7477,
    "c": 0.14546,
    "h": 298.8
  },
  "luminance": 0.39601
}

Semantic roles & 50–950 ramp

primary
#BA97FC
secondary
#EBF6D5
accent
#E60096
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141118
muted
#838086

Preview Lab

Preview with #BA97FC

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

Preview Lab → · Contrast checker → · Palette generator →

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