#BA81FA#BA81FA

#BA81FA is a light, vivid violet. Relative luminance 0.330; OKLCH L 71.0% C 0.177 H 304.0°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#BA81FA
RGBrgb(186, 129, 250)
HSLhsl(268, 92%, 74%)
HSVhsv(268, 48%, 98%)
CMYKcmyk(25.6%, 48.4%, 0%, 2%)
CIE-LABlab(64.19, 45.04, -52.45)
CIE-LCHlch(64.19, 69.14, 310.66°)
OKLaboklab(70.99% 0.0992 -0.1471)
OKLCHoklch(70.99% 0.177 304)
XYZxyz(45.3515, 33.0419, 94.4125)
Luminance0.3304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA81FA #C1FA81
analogous
#8185FA #BA81FA #F681FA
triadic
#BA81FA #FABA81 #81FABA
tetradic
#BA81FA #FA8185 #C1FA81 #81FAF6
square
#BA81FA #FA8185 #C1FA81 #81FAF6
split-complementary
#BA81FA #FAF681 #85FA81
monochromatic
#7A0BF5 #9A46F8 #BA81FA #DABCFC #EFE2FE

Accessibility & contrast

On white

2.76
#BA81FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.61
#BA81FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA81FA
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA81FA#FFFFFF#000000##000000
##BA81FA1.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D9AFE
Deuteranopia (green-blind)
#6C9CF7
Tritanopia (blue-blind)
#AF96B2
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ba81fa;
/* rgb */ color: rgb(186, 129, 250);
/* oklch */ color: oklch(71.0% 0.177 304.0);
Tailwind
colors: {
  custom: {
    50: '#d1a7fc',
    500: '#ba81fa',
    950: '#000000',
  },
}
SCSS
$custom: #ba81fa;
$custom-light: #d1a7fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba81fa",
  "rgb": {
    "r": 186,
    "g": 129,
    "b": 250
  },
  "hsl": {
    "h": 268.264,
    "s": 92.366,
    "l": 74.314
  },
  "oklch": {
    "l": 0.70991,
    "c": 0.17743,
    "h": 304
  },
  "luminance": 0.33042
}

Semantic roles & 50–950 ramp

primary
#BA81FA
secondary
#E6F6D5
accent
#E60079
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA81FA

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

Preview Lab → · Contrast checker → · Palette generator →

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