#BA8AEE#BA8AEE

#BA8AEE is a light, vivid violet. Relative luminance 0.348; OKLCH L 71.8% C 0.149 H 305.1°. Best body text is #000000 at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#BA8AEE
RGBrgb(186, 138, 238)
HSLhsl(269, 75%, 74%)
HSVhsv(269, 42%, 93%)
CMYKcmyk(21.8%, 42%, 0%, 6.7%)
CIE-LABlab(65.58, 37.37, -43.66)
CIE-LCHlch(65.58, 57.47, 310.56°)
OKLaboklab(71.84% 0.0854 -0.1216)
OKLCHoklch(71.84% 0.149 305.1)
XYZxyz(44.7676, 34.7893, 85.2289)
Luminance0.3479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8AEE #BEEE8A
analogous
#8A8CEE #BA8AEE #EC8AEE
triadic
#BA8AEE #EEBA8A #8AEEBA
tetradic
#BA8AEE #EE8A8C #BEEE8A #8AEEEC
square
#BA8AEE #EE8A8C #BEEE8A #8AEEEC
split-complementary
#BA8AEE #EEEC8A #8CEE8A
monochromatic
#7B20DD #9A55E6 #BA8AEE #DABFF6 #EFE4FB

Accessibility & contrast

On white

2.64
#BA8AEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.96
#BA8AEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8AEE
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8AEE#FFFFFF#000000##000000
##BA8AEE1.002.647.967.96
#FFFFFF2.641.0021.0021.00
#0000007.9621.001.001.00
##0000007.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#729EF2
Deuteranopia (green-blind)
#7D9FEB
Tritanopia (blue-blind)
#B29AB1
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba8aee;
/* rgb */ color: rgb(186, 138, 238);
/* oklch */ color: oklch(71.8% 0.149 305.1);
Tailwind
colors: {
  custom: {
    50: '#d0adf4',
    500: '#ba8aee',
    950: '#000000',
  },
}
SCSS
$custom: #ba8aee;
$custom-light: #d0adf4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8aee",
  "rgb": {
    "r": 186,
    "g": 138,
    "b": 238
  },
  "hsl": {
    "h": 268.8,
    "s": 74.627,
    "l": 73.725
  },
  "oklch": {
    "l": 0.71843,
    "c": 0.14859,
    "h": 305.1
  },
  "luminance": 0.34789
}

Semantic roles & 50–950 ramp

primary
#BA8AEE
secondary
#E6F3D8
accent
#D70F77
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#141017
muted
#837F85

Preview Lab

Preview with #BA8AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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