#BA81EB#BA81EB

#BA81EB is a light, vivid violet. Relative luminance 0.321; OKLCH L 70.2% C 0.160 H 307.6°. Best body text is #000000 at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#BA81EB
RGBrgb(186, 129, 235)
HSLhsl(272, 73%, 71%)
HSVhsv(272, 45%, 92%)
CMYKcmyk(20.9%, 45.1%, 0%, 7.8%)
CIE-LABlab(63.46, 41.62, -45.35)
CIE-LCHlch(63.46, 61.55, 312.55°)
OKLaboklab(70.2% 0.0973 -0.1265)
OKLCHoklch(70.2% 0.16 307.6)
XYZxyz(43.0924, 32.1382, 82.5143)
Luminance0.3214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA81EB #B2EB81
analogous
#8581EB #BA81EB #EB81E7
triadic
#BA81EB #EBBA81 #81EBBA
tetradic
#BA81EB #EB8581 #B2EB81 #81E7EB
square
#BA81EB #EB8581 #B2EB81 #81E7EB
split-complementary
#BA81EB #E7EB81 #81EB85
monochromatic
#7F21D1 #9D4CE3 #BA81EB #D7B6F3 #F1E5FB

Accessibility & contrast

On white

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

On black

7.43
#BA81EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA81EB
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA81EB#FFFFFF#000000##000000
##BA81EB1.002.837.437.43
#FFFFFF2.831.0021.0021.00
#0000007.4321.001.001.00
##0000007.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6797EF
Deuteranopia (green-blind)
#769AE8
Tritanopia (blue-blind)
#B392AB
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ba81eb;
/* rgb */ color: rgb(186, 129, 235);
/* oklch */ color: oklch(70.2% 0.160 307.6);
Tailwind
colors: {
  custom: {
    50: '#d1a7f2',
    500: '#ba81eb',
    950: '#000000',
  },
}
SCSS
$custom: #ba81eb;
$custom-light: #d1a7f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba81eb",
  "rgb": {
    "r": 186,
    "g": 129,
    "b": 235
  },
  "hsl": {
    "h": 272.264,
    "s": 72.603,
    "l": 71.373
  },
  "oklch": {
    "l": 0.702,
    "c": 0.15957,
    "h": 307.6
  },
  "luminance": 0.32138
}

Semantic roles & 50–950 ramp

primary
#BA81EB
secondary
#E3F2D6
accent
#D5116B
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA81EB

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

Preview Lab → · Contrast checker → · Palette generator →

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