#BA97EE#BA97EE

#BA97EE is a light, vivid violet. Relative luminance 0.387; OKLCH L 74.1% C 0.127 H 301.9°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#BA97EE
RGBrgb(186, 151, 238)
HSLhsl(264, 72%, 76%)
HSVhsv(264, 37%, 93%)
CMYKcmyk(21.8%, 36.6%, 0%, 6.7%)
CIE-LABlab(68.57, 30.16, -38.99)
CIE-LCHlch(68.57, 49.30, 307.73°)
OKLaboklab(74.1% 0.0673 -0.1082)
OKLCHoklch(74.1% 0.127 301.9)
XYZxyz(46.7456, 38.7453, 85.8883)
Luminance0.3875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA97EE #CBEE97
analogous
#97A0EE #BA97EE #E697EE
triadic
#BA97EE #EEBA97 #97EEBA
tetradic
#BA97EE #EE97A0 #CBEE97 #97EEE6
square
#BA97EE #EE97A0 #CBEE97 #97EEE6
split-complementary
#BA97EE #EEE697 #A0EE97
monochromatic
#742EDD #9762E5 #BA97EE #DDCCF7 #EEE5FB

Accessibility & contrast

On white

2.40
#BA97EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.75
#BA97EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA97EE
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA97EE#FFFFFF#000000##000000
##BA97EE1.002.408.758.75
#FFFFFF2.401.0021.0021.00
#0000008.7521.001.001.00
##0000008.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#83A7F1
Deuteranopia (green-blind)
#89A7EC
Tritanopia (blue-blind)
#B1A5B7
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #ba97ee;
/* rgb */ color: rgb(186, 151, 238);
/* oklch */ color: oklch(74.1% 0.127 301.9);
Tailwind
colors: {
  custom: {
    50: '#d0b6f4',
    500: '#ba97ee',
    950: '#000000',
  },
}
SCSS
$custom: #ba97ee;
$custom-light: #d0b6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba97ee",
  "rgb": {
    "r": 186,
    "g": 151,
    "b": 238
  },
  "hsl": {
    "h": 264.138,
    "s": 71.901,
    "l": 76.275
  },
  "oklch": {
    "l": 0.74099,
    "c": 0.1274,
    "h": 301.9
  },
  "luminance": 0.38745
}

Semantic roles & 50–950 ramp

primary
#BA97EE
secondary
#E8F2D9
accent
#D41286
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #BA97EE

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

Preview Lab → · Contrast checker → · Palette generator →

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