#BA97EB#BA97EB

#BA97EB is a light, vivid violet. Relative luminance 0.386; OKLCH L 74.0% C 0.124 H 302.7°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#BA97EB
RGBrgb(186, 151, 235)
HSLhsl(265, 68%, 76%)
HSVhsv(265, 36%, 92%)
CMYKcmyk(20.9%, 35.7%, 0%, 7.8%)
CIE-LABlab(68.44, 29.48, -37.54)
CIE-LCHlch(68.44, 47.73, 308.14°)
OKLaboklab(73.96% 0.0667 -0.104)
OKLCHoklch(73.96% 0.124 302.7)
XYZxyz(46.3085, 38.5705, 83.5864)
Luminance0.3857 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA97EB #C8EB97
analogous
#979EEB #BA97EB #E497EB
triadic
#BA97EB #EBBA97 #97EBBA
tetradic
#BA97EB #EB979E #C8EB97 #97EBE4
square
#BA97EB #EB979E #C8EB97 #97EBE4
split-complementary
#BA97EB #EBE497 #9EEB97
monochromatic
#7630D7 #9864E1 #BA97EB #DCCAF5 #EEE5FA

Accessibility & contrast

On white

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

On black

8.71
#BA97EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA97EB
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA97EB#FFFFFF#000000##000000
##BA97EB1.002.418.718.71
#FFFFFF2.411.0021.0021.00
#0000008.7121.001.001.00
##0000008.7121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba97eb;
/* rgb */ color: rgb(186, 151, 235);
/* oklch */ color: oklch(74.0% 0.124 302.7);
Tailwind
colors: {
  custom: {
    50: '#d0b6f1',
    500: '#ba97eb',
    950: '#000000',
  },
}
SCSS
$custom: #ba97eb;
$custom-light: #d0b6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba97eb",
  "rgb": {
    "r": 186,
    "g": 151,
    "b": 235
  },
  "hsl": {
    "h": 265,
    "s": 67.742,
    "l": 75.686
  },
  "oklch": {
    "l": 0.7396,
    "c": 0.12354,
    "h": 302.7
  },
  "luminance": 0.3857
}

Semantic roles & 50–950 ramp

primary
#BA97EB
secondary
#E8F2D9
accent
#D01682
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #BA97EB

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

Preview Lab → · Contrast checker → · Palette generator →

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