#BA81EC#BA81EC

#BA81EC is a light, vivid violet. Relative luminance 0.322; OKLCH L 70.3% C 0.161 H 307.3°. Best body text is #000000 at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#BA81EC
RGBrgb(186, 129, 236)
HSLhsl(272, 74%, 72%)
HSVhsv(272, 45%, 93%)
CMYKcmyk(21.2%, 45.3%, 0%, 7.5%)
CIE-LABlab(63.50, 41.85, -45.83)
CIE-LCHlch(63.50, 62.06, 312.40°)
OKLaboklab(70.25% 0.0975 -0.1278)
OKLCHoklch(70.25% 0.161 307.3)
XYZxyz(43.2373, 32.1962, 83.2773)
Luminance0.3220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA81EC #B3EC81
analogous
#8581EC #BA81EC #EC81E8
triadic
#BA81EC #ECBA81 #81ECBA
tetradic
#BA81EC #EC8581 #B3EC81 #81E8EC
square
#BA81EC #EC8581 #B3EC81 #81E8EC
split-complementary
#BA81EC #E8EC81 #81EC85
monochromatic
#7F20D3 #9D4CE4 #BA81EC #D7B6F4 #F0E4FB

Accessibility & contrast

On white

2.82
#BA81EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.44
#BA81EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA81EC
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA81EC#FFFFFF#000000##000000
##BA81EC1.002.827.447.44
#FFFFFF2.821.0021.0021.00
#0000007.4421.001.001.00
##0000007.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6698F0
Deuteranopia (green-blind)
#759AE9
Tritanopia (blue-blind)
#B393AB
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ba81ec;
/* rgb */ color: rgb(186, 129, 236);
/* oklch */ color: oklch(70.3% 0.161 307.3);
Tailwind
colors: {
  custom: {
    50: '#d1a7f2',
    500: '#ba81ec',
    950: '#000000',
  },
}
SCSS
$custom: #ba81ec;
$custom-light: #d1a7f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba81ec",
  "rgb": {
    "r": 186,
    "g": 129,
    "b": 236
  },
  "hsl": {
    "h": 271.963,
    "s": 73.793,
    "l": 71.569
  },
  "oklch": {
    "l": 0.70251,
    "c": 0.16076,
    "h": 307.3
  },
  "luminance": 0.32196
}

Semantic roles & 50–950 ramp

primary
#BA81EC
secondary
#E4F2D7
accent
#D6106C
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA81EC

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

Preview Lab → · Contrast checker → · Palette generator →

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