#BA96EA#BA96EA

#BA96EA is a light, vivid violet. Relative luminance 0.382; OKLCH L 73.7% C 0.124 H 303.2°. Best body text is #000000 at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#BA96EA
RGBrgb(186, 150, 234)
HSLhsl(266, 67%, 75%)
HSVhsv(266, 36%, 92%)
CMYKcmyk(20.5%, 35.9%, 0%, 8.2%)
CIE-LABlab(68.16, 29.81, -37.43)
CIE-LCHlch(68.16, 47.85, 308.54°)
OKLaboklab(73.74% 0.0678 -0.1037)
OKLCHoklch(73.74% 0.124 303.2)
XYZxyz(46.0042, 38.1924, 82.7742)
Luminance0.3819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA96EA #C6EA96
analogous
#969CEA #BA96EA #E496EA
triadic
#BA96EA #EABA96 #96EABA
tetradic
#BA96EA #EA969C #C6EA96 #96EAE4
square
#BA96EA #EA969C #C6EA96 #96EAE4
split-complementary
#BA96EA #EAE496 #9CEA96
monochromatic
#7730D6 #9863E0 #BA96EA #DCC9F4 #EEE5FA

Accessibility & contrast

On white

2.43
#BA96EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.64
#BA96EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA96EA
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA96EA#FFFFFF#000000##000000
##BA96EA1.002.438.648.64
#FFFFFF2.431.0021.0021.00
#0000008.6421.001.001.00
##0000008.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#83A5ED
Deuteranopia (green-blind)
#8AA6E8
Tritanopia (blue-blind)
#B2A3B5
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #ba96ea;
/* rgb */ color: rgb(186, 150, 234);
/* oklch */ color: oklch(73.7% 0.124 303.2);
Tailwind
colors: {
  custom: {
    50: '#d0b5f1',
    500: '#ba96ea',
    950: '#000000',
  },
}
SCSS
$custom: #ba96ea;
$custom-light: #d0b5f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba96ea",
  "rgb": {
    "r": 186,
    "g": 150,
    "b": 234
  },
  "hsl": {
    "h": 265.714,
    "s": 66.667,
    "l": 75.294
  },
  "oklch": {
    "l": 0.73736,
    "c": 0.12389,
    "h": 303.2
  },
  "luminance": 0.38192
}

Semantic roles & 50–950 ramp

primary
#BA96EA
secondary
#E7F1DA
accent
#CF1780
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141116
muted
#828084

Preview Lab

Preview with #BA96EA

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

Preview Lab → · Contrast checker → · Palette generator →

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