#BA97EC#BA97EC

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

Color values

HEX#BA97EC
RGBrgb(186, 151, 236)
HSLhsl(265, 69%, 76%)
HSVhsv(265, 36%, 93%)
CMYKcmyk(21.2%, 36%, 0%, 7.5%)
CIE-LABlab(68.48, 29.71, -38.03)
CIE-LCHlch(68.48, 48.25, 308.00°)
OKLaboklab(74.01% 0.0669 -0.1054)
OKLCHoklch(74.01% 0.125 302.4)
XYZxyz(46.4534, 38.6285, 84.3494)
Luminance0.3863 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA97EC #C9EC97
analogous
#979EEC #BA97EC #E497EC
triadic
#BA97EC #ECBA97 #97ECBA
tetradic
#BA97EC #EC979E #C9EC97 #97ECE4
square
#BA97EC #EC979E #C9EC97 #97ECE4
split-complementary
#BA97EC #ECE497 #9EEC97
monochromatic
#7530D9 #9863E3 #BA97EC #DCCBF5 #EEE5FA

Accessibility & contrast

On white

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

On black

8.73
#BA97EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA97EC
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA97EC#FFFFFF#000000##000000
##BA97EC1.002.418.738.73
#FFFFFF2.411.0021.0021.00
#0000008.7321.001.001.00
##0000008.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#83A6EF
Deuteranopia (green-blind)
#8AA7EA
Tritanopia (blue-blind)
#B2A4B7
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #ba97ec;
/* rgb */ color: rgb(186, 151, 236);
/* oklch */ color: oklch(74.0% 0.125 302.4);
Tailwind
colors: {
  custom: {
    50: '#d0b6f2',
    500: '#ba97ec',
    950: '#000000',
  },
}
SCSS
$custom: #ba97ec;
$custom-light: #d0b6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba97ec",
  "rgb": {
    "r": 186,
    "g": 151,
    "b": 236
  },
  "hsl": {
    "h": 264.706,
    "s": 69.106,
    "l": 75.882
  },
  "oklch": {
    "l": 0.74006,
    "c": 0.12483,
    "h": 302.4
  },
  "luminance": 0.38628
}

Semantic roles & 50–950 ramp

primary
#BA97EC
secondary
#E8F2D9
accent
#D11483
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #BA97EC

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

Preview Lab → · Contrast checker → · Palette generator →

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