#BA97EF#BA97EF

#BA97EF is a light, vivid violet. Relative luminance 0.388; OKLCH L 74.1% C 0.129 H 301.6°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#BA97EF
RGBrgb(186, 151, 239)
HSLhsl(264, 73%, 76%)
HSVhsv(264, 37%, 94%)
CMYKcmyk(22.2%, 36.8%, 0%, 6.3%)
CIE-LABlab(68.61, 30.39, -39.47)
CIE-LCHlch(68.61, 49.82, 307.60°)
OKLaboklab(74.15% 0.0675 -0.1096)
OKLCHoklch(74.15% 0.129 301.6)
XYZxyz(46.8929, 38.8043, 86.6641)
Luminance0.3880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA97EF #CCEF97
analogous
#97A0EF #BA97EF #E697EF
triadic
#BA97EF #EFBA97 #97EFBA
tetradic
#BA97EF #EF97A0 #CCEF97 #97EFE6
square
#BA97EF #EF97A0 #CCEF97 #97EFE6
split-complementary
#BA97EF #EFE697 #A0EF97
monochromatic
#742DDF #9762E7 #BA97EF #DDCCF7 #EDE4FB

Accessibility & contrast

On white

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

On black

8.76
#BA97EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA97EF
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA97EF#FFFFFF#000000##000000
##BA97EF1.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#82A7F2
Deuteranopia (green-blind)
#89A7ED
Tritanopia (blue-blind)
#B1A5B8
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #ba97ef;
/* rgb */ color: rgb(186, 151, 239);
/* oklch */ color: oklch(74.1% 0.129 301.6);
Tailwind
colors: {
  custom: {
    50: '#d0b6f4',
    500: '#ba97ef',
    950: '#000000',
  },
}
SCSS
$custom: #ba97ef;
$custom-light: #d0b6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba97ef",
  "rgb": {
    "r": 186,
    "g": 151,
    "b": 239
  },
  "hsl": {
    "h": 263.864,
    "s": 73.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.74146,
    "c": 0.1287,
    "h": 301.6
  },
  "luminance": 0.38804
}

Semantic roles & 50–950 ramp

primary
#BA97EF
secondary
#E8F3D8
accent
#D51087
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #BA97EF

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

Preview Lab → · Contrast checker → · Palette generator →

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