#BA81EA#BA81EA

#BA81EA is a light, vivid violet. Relative luminance 0.321; OKLCH L 70.1% C 0.158 H 307.8°. Best body text is #000000 at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#BA81EA
RGBrgb(186, 129, 234)
HSLhsl(273, 71%, 71%)
HSVhsv(273, 45%, 92%)
CMYKcmyk(20.5%, 44.9%, 0%, 8.2%)
CIE-LABlab(63.41, 41.40, -44.87)
CIE-LCHlch(63.41, 61.05, 312.70°)
OKLaboklab(70.15% 0.0972 -0.1251)
OKLCHoklch(70.15% 0.158 307.8)
XYZxyz(42.9483, 32.0806, 81.7556)
Luminance0.3208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA81EA #B1EA81
analogous
#8581EA #BA81EA #EA81E6
triadic
#BA81EA #EABA81 #81EABA
tetradic
#BA81EA #EA8581 #B1EA81 #81E6EA
square
#BA81EA #EA8581 #B1EA81 #81E6EA
split-complementary
#BA81EA #E6EA81 #81EA85
monochromatic
#8022CE #9D4DE1 #BA81EA #D7B5F3 #F1E5FB

Accessibility & contrast

On white

2.83
#BA81EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.42
#BA81EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA81EA
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA81EA#FFFFFF#000000##000000
##BA81EA1.002.837.427.42
#FFFFFF2.831.0021.0021.00
#0000007.4221.001.001.00
##0000007.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6897EE
Deuteranopia (green-blind)
#769AE7
Tritanopia (blue-blind)
#B392AA
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ba81ea;
/* rgb */ color: rgb(186, 129, 234);
/* oklch */ color: oklch(70.1% 0.158 307.8);
Tailwind
colors: {
  custom: {
    50: '#d1a7f1',
    500: '#ba81ea',
    950: '#000000',
  },
}
SCSS
$custom: #ba81ea;
$custom-light: #d1a7f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba81ea",
  "rgb": {
    "r": 186,
    "g": 129,
    "b": 234
  },
  "hsl": {
    "h": 272.571,
    "s": 71.429,
    "l": 71.176
  },
  "oklch": {
    "l": 0.70148,
    "c": 0.15839,
    "h": 307.8
  },
  "luminance": 0.3208
}

Semantic roles & 50–950 ramp

primary
#BA81EA
secondary
#E2F1D6
accent
#D3126A
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA81EA

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

Preview Lab → · Contrast checker → · Palette generator →

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