#BA81EE#BA81EE

#BA81EE is a light, vivid violet. Relative luminance 0.323; OKLCH L 70.4% C 0.163 H 306.8°. Best body text is #000000 at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#BA81EE
RGBrgb(186, 129, 238)
HSLhsl(271, 76%, 72%)
HSVhsv(271, 46%, 93%)
CMYKcmyk(21.8%, 45.8%, 0%, 6.7%)
CIE-LABlab(63.60, 42.30, -46.78)
CIE-LCHlch(63.60, 63.07, 312.12°)
OKLaboklab(70.35% 0.0977 -0.1306)
OKLCHoklch(70.35% 0.163 306.8)
XYZxyz(43.5295, 32.3131, 84.8162)
Luminance0.3231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA81EE #B5EE81
analogous
#8481EE #BA81EE #EE81EC
triadic
#BA81EE #EEBA81 #81EEBA
tetradic
#BA81EE #EE8481 #B5EE81 #81ECEE
square
#BA81EE #EE8481 #B5EE81 #81ECEE
split-complementary
#BA81EE #ECEE81 #81EE84
monochromatic
#7F1DD8 #9C4BE7 #BA81EE #D8B7F5 #F0E4FB

Accessibility & contrast

On white

2.81
#BA81EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.46
#BA81EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA81EE
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA81EE#FFFFFF#000000##000000
##BA81EE1.002.817.467.46
#FFFFFF2.811.0021.0021.00
#0000007.4621.001.001.00
##0000007.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6598F2
Deuteranopia (green-blind)
#749BEB
Tritanopia (blue-blind)
#B293AC
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ba81ee;
/* rgb */ color: rgb(186, 129, 238);
/* oklch */ color: oklch(70.4% 0.163 306.8);
Tailwind
colors: {
  custom: {
    50: '#d1a7f4',
    500: '#ba81ee',
    950: '#000000',
  },
}
SCSS
$custom: #ba81ee;
$custom-light: #d1a7f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba81ee",
  "rgb": {
    "r": 186,
    "g": 129,
    "b": 238
  },
  "hsl": {
    "h": 271.376,
    "s": 76.224,
    "l": 71.961
  },
  "oklch": {
    "l": 0.70354,
    "c": 0.16314,
    "h": 306.8
  },
  "luminance": 0.32313
}

Semantic roles & 50–950 ramp

primary
#BA81EE
secondary
#E5F3D8
accent
#D80D6E
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA81EE

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

Preview Lab → · Contrast checker → · Palette generator →

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