#BA97EA#BA97EA

#BA97EA is a light, vivid violet. Relative luminance 0.385; OKLCH L 73.9% C 0.122 H 302.9°. Best body text is #000000 at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#BA97EA
RGBrgb(186, 151, 234)
HSLhsl(265, 66%, 75%)
HSVhsv(265, 35%, 92%)
CMYKcmyk(20.5%, 35.5%, 0%, 8.2%)
CIE-LABlab(68.40, 29.25, -37.06)
CIE-LCHlch(68.40, 47.21, 308.28°)
OKLaboklab(73.91% 0.0664 -0.1026)
OKLCHoklch(73.91% 0.122 302.9)
XYZxyz(46.1645, 38.5129, 82.8276)
Luminance0.3851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA97EA #C7EA97
analogous
#979DEA #BA97EA #E397EA
triadic
#BA97EA #EABA97 #97EABA
tetradic
#BA97EA #EA979D #C7EA97 #97EAE3
square
#BA97EA #EA979D #C7EA97 #97EAE3
split-complementary
#BA97EA #EAE397 #9DEA97
monochromatic
#7631D5 #9864E0 #BA97EA #DCCAF4 #EEE6FA

Accessibility & contrast

On white

2.41
#BA97EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.70
#BA97EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA97EA
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA97EA#FFFFFF#000000##000000
##BA97EA1.002.418.708.70
#FFFFFF2.411.0021.0021.00
#0000008.7021.001.001.00
##0000008.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#84A6ED
Deuteranopia (green-blind)
#8BA7E8
Tritanopia (blue-blind)
#B2A4B6
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #ba97ea;
/* rgb */ color: rgb(186, 151, 234);
/* oklch */ color: oklch(73.9% 0.122 302.9);
Tailwind
colors: {
  custom: {
    50: '#d0b6f1',
    500: '#ba97ea',
    950: '#000000',
  },
}
SCSS
$custom: #ba97ea;
$custom-light: #d0b6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba97ea",
  "rgb": {
    "r": 186,
    "g": 151,
    "b": 234
  },
  "hsl": {
    "h": 265.301,
    "s": 66.4,
    "l": 75.49
  },
  "oklch": {
    "l": 0.73915,
    "c": 0.12225,
    "h": 302.9
  },
  "luminance": 0.38513
}

Semantic roles & 50–950 ramp

primary
#BA97EA
secondary
#E7F1DA
accent
#CE1781
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141116
muted
#828084

Preview Lab

Preview with #BA97EA

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

Preview Lab → · Contrast checker → · Palette generator →

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