#BA8AEF#BA8AEF

#BA8AEF is a light, vivid violet. Relative luminance 0.348; OKLCH L 71.9% C 0.150 H 304.8°. Best body text is #000000 at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#BA8AEF
RGBrgb(186, 138, 239)
HSLhsl(269, 76%, 74%)
HSVhsv(269, 42%, 94%)
CMYKcmyk(22.2%, 42.3%, 0%, 6.3%)
CIE-LABlab(65.63, 37.60, -44.14)
CIE-LCHlch(65.63, 57.98, 310.43°)
OKLaboklab(71.89% 0.0856 -0.123)
OKLCHoklch(71.89% 0.15 304.8)
XYZxyz(44.9149, 34.8483, 86.0048)
Luminance0.3485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8AEF #BFEF8A
analogous
#8A8DEF #BA8AEF #ED8AEF
triadic
#BA8AEF #EFBA8A #8AEFBA
tetradic
#BA8AEF #EF8A8D #BFEF8A #8AEFED
square
#BA8AEF #EF8A8D #BFEF8A #8AEFED
split-complementary
#BA8AEF #EFED8A #8DEF8A
monochromatic
#7B1FE0 #9A54E8 #BA8AEF #DAC0F6 #EFE4FB

Accessibility & contrast

On white

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

On black

7.97
#BA8AEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8AEF
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8AEF#FFFFFF#000000##000000
##BA8AEF1.002.647.977.97
#FFFFFF2.641.0021.0021.00
#0000007.9721.001.001.00
##0000007.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#719EF3
Deuteranopia (green-blind)
#7CA0EC
Tritanopia (blue-blind)
#B29BB1
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba8aef;
/* rgb */ color: rgb(186, 138, 239);
/* oklch */ color: oklch(71.9% 0.150 304.8);
Tailwind
colors: {
  custom: {
    50: '#d0adf4',
    500: '#ba8aef',
    950: '#000000',
  },
}
SCSS
$custom: #ba8aef;
$custom-light: #d0adf4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8aef",
  "rgb": {
    "r": 186,
    "g": 138,
    "b": 239
  },
  "hsl": {
    "h": 268.515,
    "s": 75.94,
    "l": 73.922
  },
  "oklch": {
    "l": 0.71892,
    "c": 0.14982,
    "h": 304.8
  },
  "luminance": 0.34848
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA8AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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