#BA81EF#BA81EF

#BA81EF is a light, vivid violet. Relative luminance 0.324; OKLCH L 70.4% C 0.164 H 306.6°. Best body text is #000000 at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#BA81EF
RGBrgb(186, 129, 239)
HSLhsl(271, 77%, 72%)
HSVhsv(271, 46%, 94%)
CMYKcmyk(22.2%, 46%, 0%, 6.3%)
CIE-LABlab(63.65, 42.52, -47.26)
CIE-LCHlch(63.65, 63.57, 311.98°)
OKLaboklab(70.41% 0.0979 -0.132)
OKLCHoklch(70.41% 0.164 306.6)
XYZxyz(43.6768, 32.3720, 85.5921)
Luminance0.3237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA81EF #B6EF81
analogous
#8381EF #BA81EF #EF81ED
triadic
#BA81EF #EFBA81 #81EFBA
tetradic
#BA81EF #EF8381 #B6EF81 #81EDEF
square
#BA81EF #EF8381 #B6EF81 #81EDEF
split-complementary
#BA81EF #EDEF81 #81EF83
monochromatic
#7E1CDA #9C4BE8 #BA81EF #D8B7F6 #F0E4FC

Accessibility & contrast

On white

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

On black

7.47
#BA81EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA81EF
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA81EF#FFFFFF#000000##000000
##BA81EF1.002.817.477.47
#FFFFFF2.811.0021.0021.00
#0000007.4721.001.001.00
##0000007.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6598F3
Deuteranopia (green-blind)
#739BEC
Tritanopia (blue-blind)
#B293AD
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ba81ef;
/* rgb */ color: rgb(186, 129, 239);
/* oklch */ color: oklch(70.4% 0.164 306.6);
Tailwind
colors: {
  custom: {
    50: '#d1a7f5',
    500: '#ba81ef',
    950: '#000000',
  },
}
SCSS
$custom: #ba81ef;
$custom-light: #d1a7f5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba81ef",
  "rgb": {
    "r": 186,
    "g": 129,
    "b": 239
  },
  "hsl": {
    "h": 271.091,
    "s": 77.465,
    "l": 72.157
  },
  "oklch": {
    "l": 0.70406,
    "c": 0.16433,
    "h": 306.6
  },
  "luminance": 0.32372
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA81EF

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

Preview Lab → · Contrast checker → · Palette generator →

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