#BA96EB#BA96EB

#BA96EB is a light, vivid violet. Relative luminance 0.383; OKLCH L 73.8% C 0.125 H 302.9°. Best body text is #000000 at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#BA96EB
RGBrgb(186, 150, 235)
HSLhsl(265, 68%, 75%)
HSVhsv(265, 36%, 92%)
CMYKcmyk(20.9%, 36.2%, 0%, 7.8%)
CIE-LABlab(68.20, 30.03, -37.91)
CIE-LCHlch(68.20, 48.36, 308.39°)
OKLaboklab(73.78% 0.0681 -0.1051)
OKLCHoklch(73.78% 0.125 302.9)
XYZxyz(46.1483, 38.2500, 83.5329)
Luminance0.3825 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA96EB #C7EB96
analogous
#969CEB #BA96EB #E596EB
triadic
#BA96EB #EBBA96 #96EBBA
tetradic
#BA96EB #EB969C #C7EB96 #96EBE5
square
#BA96EB #EB969C #C7EB96 #96EBE5
split-complementary
#BA96EB #EBE596 #9CEB96
monochromatic
#762FD7 #9863E1 #BA96EB #DCC9F5 #EEE5FA

Accessibility & contrast

On white

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

On black

8.65
#BA96EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA96EB
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA96EB#FFFFFF#000000##000000
##BA96EB1.002.438.658.65
#FFFFFF2.431.0021.0021.00
#0000008.6521.001.001.00
##0000008.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#83A5EE
Deuteranopia (green-blind)
#8AA6E9
Tritanopia (blue-blind)
#B2A3B6
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #ba96eb;
/* rgb */ color: rgb(186, 150, 235);
/* oklch */ color: oklch(73.8% 0.125 302.9);
Tailwind
colors: {
  custom: {
    50: '#d0b5f1',
    500: '#ba96eb',
    950: '#000000',
  },
}
SCSS
$custom: #ba96eb;
$custom-light: #d0b5f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba96eb",
  "rgb": {
    "r": 186,
    "g": 150,
    "b": 235
  },
  "hsl": {
    "h": 265.412,
    "s": 68,
    "l": 75.49
  },
  "oklch": {
    "l": 0.73782,
    "c": 0.12518,
    "h": 302.9
  },
  "luminance": 0.3825
}

Semantic roles & 50–950 ramp

primary
#BA96EB
secondary
#E7F2D9
accent
#D01681
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #BA96EB

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

Preview Lab → · Contrast checker → · Palette generator →

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