#BA97FA#BA97FA

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

Color values

HEX#BA97FA
RGBrgb(186, 151, 250)
HSLhsl(261, 91%, 79%)
HSVhsv(261, 40%, 98%)
CMYKcmyk(25.6%, 39.6%, 0%, 2%)
CIE-LABlab(69.09, 32.95, -44.72)
CIE-LCHlch(69.09, 55.55, 306.39°)
OKLaboklab(74.67% 0.0697 -0.1247)
OKLCHoklch(74.67% 0.143 299.2)
XYZxyz(48.5677, 39.4742, 95.4845)
Luminance0.3947 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA97FA #D7FA97
analogous
#97A5FA #BA97FA #EB97FA
triadic
#BA97FA #FABA97 #97FABA
tetradic
#BA97FA #FA97A5 #D7FA97 #97FAEB
square
#BA97FA #FA97A5 #D7FA97 #97FAEB
split-complementary
#BA97FA #FAEB97 #A5FA97
monochromatic
#6D22F4 #935DF7 #BA97FA #E1D1FD #ECE2FE

Accessibility & contrast

On white

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

On black

8.89
#BA97FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA97FA
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA97FA#FFFFFF#000000##000000
##BA97FA1.002.368.898.89
#FFFFFF2.361.0021.0021.00
#0000008.8921.001.001.00
##0000008.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7DA9FE
Deuteranopia (green-blind)
#83A8F7
Tritanopia (blue-blind)
#AEA8BD
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #ba97fa;
/* rgb */ color: rgb(186, 151, 250);
/* oklch */ color: oklch(74.7% 0.143 299.2);
Tailwind
colors: {
  custom: {
    50: '#d0b6fc',
    500: '#ba97fa',
    950: '#000000',
  },
}
SCSS
$custom: #ba97fa;
$custom-light: #d0b6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba97fa",
  "rgb": {
    "r": 186,
    "g": 151,
    "b": 250
  },
  "hsl": {
    "h": 261.212,
    "s": 90.826,
    "l": 78.627
  },
  "oklch": {
    "l": 0.74672,
    "c": 0.14289,
    "h": 299.2
  },
  "luminance": 0.39474
}

Semantic roles & 50–950 ramp

primary
#BA97FA
secondary
#EAF6D5
accent
#E60094
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141117
muted
#838085

Preview Lab

Preview with #BA97FA

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

Preview Lab → · Contrast checker → · Palette generator →

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