#BA96EF#BA96EF

#BA96EF is a light, vivid violet. Relative luminance 0.385; OKLCH L 74.0% C 0.130 H 301.9°. Best body text is #000000 at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#BA96EF
RGBrgb(186, 150, 239)
HSLhsl(264, 74%, 76%)
HSVhsv(264, 37%, 94%)
CMYKcmyk(22.2%, 37.2%, 0%, 6.3%)
CIE-LABlab(68.38, 30.95, -39.84)
CIE-LCHlch(68.38, 50.44, 307.84°)
OKLaboklab(73.97% 0.0689 -0.1106)
OKLCHoklch(73.97% 0.13 301.9)
XYZxyz(46.7327, 38.4838, 86.6107)
Luminance0.3848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA96EF #CBEF96
analogous
#969FEF #BA96EF #E796EF
triadic
#BA96EF #EFBA96 #96EFBA
tetradic
#BA96EF #EF969F #CBEF96 #96EFE7
square
#BA96EF #EF969F #CBEF96 #96EFE7
split-complementary
#BA96EF #EFE796 #9FEF96
monochromatic
#742CDF #9761E7 #BA96EF #DDCBF7 #EEE4FB

Accessibility & contrast

On white

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

On black

8.70
#BA96EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA96EF
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA96EF#FFFFFF#000000##000000
##BA96EF1.002.418.708.70
#FFFFFF2.411.0021.0021.00
#0000008.7021.001.001.00
##0000008.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#81A6F2
Deuteranopia (green-blind)
#88A6ED
Tritanopia (blue-blind)
#B1A4B7
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #ba96ef;
/* rgb */ color: rgb(186, 150, 239);
/* oklch */ color: oklch(74.0% 0.130 301.9);
Tailwind
colors: {
  custom: {
    50: '#d0b5f4',
    500: '#ba96ef',
    950: '#000000',
  },
}
SCSS
$custom: #ba96ef;
$custom-light: #d0b5f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba96ef",
  "rgb": {
    "r": 186,
    "g": 150,
    "b": 239
  },
  "hsl": {
    "h": 264.27,
    "s": 73.554,
    "l": 76.275
  },
  "oklch": {
    "l": 0.73968,
    "c": 0.13032,
    "h": 301.9
  },
  "luminance": 0.38484
}

Semantic roles & 50–950 ramp

primary
#BA96EF
secondary
#E8F3D8
accent
#D61086
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #BA96EF

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

Preview Lab → · Contrast checker → · Palette generator →

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