#BA8AEB#BA8AEB

#BA8AEB is a light, vivid violet. Relative luminance 0.346; OKLCH L 71.7% C 0.145 H 305.9°. Best body text is #000000 at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#BA8AEB
RGBrgb(186, 138, 235)
HSLhsl(270, 71%, 73%)
HSVhsv(270, 41%, 92%)
CMYKcmyk(20.9%, 41.3%, 0%, 7.8%)
CIE-LABlab(65.45, 36.69, -42.22)
CIE-LCHlch(65.45, 55.93, 310.99°)
OKLaboklab(71.69% 0.0849 -0.1174)
OKLCHoklch(71.69% 0.145 305.9)
XYZxyz(44.3305, 34.6145, 82.9270)
Luminance0.3461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8AEB #BBEB8A
analogous
#8A8AEB #BA8AEB #EB8AEB
triadic
#BA8AEB #EBBA8A #8AEBBA
tetradic
#BA8AEB #EB8A8A #BBEB8A #8AEBEB
square
#BA8AEB #EB8A8A #BBEB8A #8AEBEB
split-complementary
#BA8AEB #EBEB8A #8AEB8A
monochromatic
#7C25D6 #9B56E2 #BA8AEB #D9BEF4 #F0E5FB

Accessibility & contrast

On white

2.65
#BA8AEB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.92
#BA8AEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8AEB
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8AEB#FFFFFF#000000##000000
##BA8AEB1.002.657.927.92
#FFFFFF2.651.0021.0021.00
#0000007.9221.001.001.00
##0000007.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#739DEF
Deuteranopia (green-blind)
#7E9FE8
Tritanopia (blue-blind)
#B399AF
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba8aeb;
/* rgb */ color: rgb(186, 138, 235);
/* oklch */ color: oklch(71.7% 0.145 305.9);
Tailwind
colors: {
  custom: {
    50: '#d0adf2',
    500: '#ba8aeb',
    950: '#000000',
  },
}
SCSS
$custom: #ba8aeb;
$custom-light: #d0adf2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8aeb",
  "rgb": {
    "r": 186,
    "g": 138,
    "b": 235
  },
  "hsl": {
    "h": 269.691,
    "s": 70.803,
    "l": 73.137
  },
  "oklch": {
    "l": 0.71695,
    "c": 0.1449,
    "h": 305.9
  },
  "luminance": 0.34614
}

Semantic roles & 50–950 ramp

primary
#BA8AEB
secondary
#E6F2D9
accent
#D31374
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141017
muted
#827F85

Preview Lab

Preview with #BA8AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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