#BA81ED#BA81ED

#BA81ED is a light, vivid violet. Relative luminance 0.323; OKLCH L 70.3% C 0.162 H 307.1°. Best body text is #000000 at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#BA81ED
RGBrgb(186, 129, 237)
HSLhsl(272, 75%, 72%)
HSVhsv(272, 46%, 93%)
CMYKcmyk(21.5%, 45.6%, 0%, 7.1%)
CIE-LABlab(63.55, 42.07, -46.30)
CIE-LCHlch(63.55, 62.56, 312.26°)
OKLaboklab(70.3% 0.0976 -0.1292)
OKLCHoklch(70.3% 0.162 307.1)
XYZxyz(43.3830, 32.2545, 84.0446)
Luminance0.3225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA81ED #B4ED81
analogous
#8481ED #BA81ED #ED81EA
triadic
#BA81ED #EDBA81 #81EDBA
tetradic
#BA81ED #ED8481 #B4ED81 #81EAED
square
#BA81ED #ED8481 #B4ED81 #81EAED
split-complementary
#BA81ED #EAED81 #81ED84
monochromatic
#7F1ED5 #9D4BE5 #BA81ED #D7B7F5 #F0E4FB

Accessibility & contrast

On white

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

On black

7.45
#BA81ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA81ED
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA81ED#FFFFFF#000000##000000
##BA81ED1.002.827.457.45
#FFFFFF2.821.0021.0021.00
#0000007.4521.001.001.00
##0000007.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6698F1
Deuteranopia (green-blind)
#749AEA
Tritanopia (blue-blind)
#B393AC
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ba81ed;
/* rgb */ color: rgb(186, 129, 237);
/* oklch */ color: oklch(70.3% 0.162 307.1);
Tailwind
colors: {
  custom: {
    50: '#d1a7f3',
    500: '#ba81ed',
    950: '#000000',
  },
}
SCSS
$custom: #ba81ed;
$custom-light: #d1a7f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba81ed",
  "rgb": {
    "r": 186,
    "g": 129,
    "b": 237
  },
  "hsl": {
    "h": 271.667,
    "s": 75,
    "l": 71.765
  },
  "oklch": {
    "l": 0.70302,
    "c": 0.16195,
    "h": 307.1
  },
  "luminance": 0.32254
}

Semantic roles & 50–950 ramp

primary
#BA81ED
secondary
#E4F3D7
accent
#D70E6D
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA81ED

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

Preview Lab → · Contrast checker → · Palette generator →

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