#BA5AEE#BA5AEE

#BA5AEE is a light, highly saturated violet. Relative luminance 0.239; OKLCH L 64.8% C 0.222 H 311.7°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#BA5AEE
RGBrgb(186, 90, 238)
HSLhsl(279, 81%, 64%)
HSVhsv(279, 62%, 93%)
CMYKcmyk(21.8%, 62.2%, 0%, 6.7%)
CIE-LABlab(56.01, 62.21, -58.84)
CIE-LCHlch(56.01, 85.63, 316.59°)
OKLaboklab(64.77% 0.1474 -0.1657)
OKLCHoklch(64.77% 0.222 311.7)
XYZxyz(39.3357, 23.9254, 83.4183)
Luminance0.2392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5AEE #8EEE5A
analogous
#705AEE #BA5AEE #EE5AD8
triadic
#BA5AEE #EEBA5A #5AEEBA
tetradic
#BA5AEE #EE705A #8EEE5A #5AD8EE
square
#BA5AEE #EE705A #8EEE5A #5AD8EE
split-complementary
#BA5AEE #D8EE5A #5AEE70
monochromatic
#8013BA #A323E8 #BA5AEE #D191F4 #E8C9F9

Accessibility & contrast

On white

3.63
#BA5AEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#BA5AEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5AEE
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5AEE#FFFFFF#000000##000000
##BA5AEE1.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1482F3
Deuteranopia (green-blind)
#4D88EB
Tritanopia (blue-blind)
#B4779C
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #ba5aee;
/* rgb */ color: rgb(186, 90, 238);
/* oklch */ color: oklch(64.8% 0.222 311.7);
Tailwind
colors: {
  custom: {
    50: '#d28ef4',
    500: '#ba5aee',
    950: '#000000',
  },
}
SCSS
$custom: #ba5aee;
$custom-light: #d28ef4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5aee",
  "rgb": {
    "r": 186,
    "g": 90,
    "b": 238
  },
  "hsl": {
    "h": 278.919,
    "s": 81.319,
    "l": 64.314
  },
  "oklch": {
    "l": 0.64768,
    "c": 0.22176,
    "h": 311.7
  },
  "luminance": 0.23924
}

Semantic roles & 50–950 ramp

primary
#BA5AEE
secondary
#CAECB8
accent
#DE0853
background
#FDF9FF
surface
#FAF1FE
border
#D3CBD6
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA5AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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