#BA96FC#BA96FC

#BA96FC is a light, vivid violet. Relative luminance 0.393; OKLCH L 74.6% C 0.147 H 299.1°. Best body text is #000000 at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#BA96FC
RGBrgb(186, 150, 252)
HSLhsl(261, 94%, 79%)
HSVhsv(261, 40%, 99%)
CMYKcmyk(26.2%, 40.5%, 0%, 1.2%)
CIE-LABlab(68.95, 33.98, -46.03)
CIE-LCHlch(68.95, 57.22, 306.44°)
OKLaboklab(74.6% 0.0715 -0.1285)
OKLCHoklch(74.6% 0.147 299.1)
XYZxyz(48.7227, 39.2798, 97.0914)
Luminance0.3928 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA96FC #D8FC96
analogous
#96A5FC #BA96FC #ED96FC
triadic
#BA96FC #FCBA96 #96FCBA
tetradic
#BA96FC #FC96A5 #D8FC96 #96FCED
square
#BA96FC #FC96A5 #D8FC96 #96FCED
split-complementary
#BA96FC #FCED96 #A5FC96
monochromatic
#6C1FF9 #935BFA #BA96FC #E1D2FE #EBE1FE

Accessibility & contrast

On white

2.37
#BA96FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.86
#BA96FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA96FC
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA96FC#FFFFFF#000000##000000
##BA96FC1.002.378.868.86
#FFFFFF2.371.0021.0021.00
#0000008.8621.001.001.00
##0000008.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BA8FF
Deuteranopia (green-blind)
#81A7F9
Tritanopia (blue-blind)
#ADA8BD
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #ba96fc;
/* rgb */ color: rgb(186, 150, 252);
/* oklch */ color: oklch(74.6% 0.147 299.1);
Tailwind
colors: {
  custom: {
    50: '#d1b5fe',
    500: '#ba96fc',
    950: '#000000',
  },
}
SCSS
$custom: #ba96fc;
$custom-light: #d1b5fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba96fc",
  "rgb": {
    "r": 186,
    "g": 150,
    "b": 252
  },
  "hsl": {
    "h": 261.176,
    "s": 94.444,
    "l": 78.824
  },
  "oklch": {
    "l": 0.74596,
    "c": 0.14704,
    "h": 299.1
  },
  "luminance": 0.3928
}

Semantic roles & 50–950 ramp

primary
#BA96FC
secondary
#EAF6D5
accent
#E60095
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141118
muted
#838086

Preview Lab

Preview with #BA96FC

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

Preview Lab → · Contrast checker → · Palette generator →

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