#BA5AEA#BA5AEA

#BA5AEA is a light, highly saturated purple. Relative luminance 0.237; OKLCH L 64.5% C 0.218 H 312.6°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#BA5AEA
RGBrgb(186, 90, 234)
HSLhsl(280, 77%, 64%)
HSVhsv(280, 62%, 92%)
CMYKcmyk(20.5%, 61.5%, 0%, 8.2%)
CIE-LABlab(55.78, 61.37, -56.98)
CIE-LCHlch(55.78, 83.75, 317.12°)
OKLaboklab(64.52% 0.1475 -0.1602)
OKLCHoklch(64.52% 0.218 312.6)
XYZxyz(38.7545, 23.6930, 80.3576)
Luminance0.2369 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5AEA #8AEA5A
analogous
#725AEA #BA5AEA #EA5AD2
triadic
#BA5AEA #EABA5A #5AEABA
tetradic
#BA5AEA #EA725A #8AEA5A #5AD2EA
square
#BA5AEA #EA725A #8AEA5A #5AD2EA
split-complementary
#BA5AEA #D2EA5A #5AEA72
monochromatic
#7F17B3 #A324E3 #BA5AEA #D190F1 #E7C7F8

Accessibility & contrast

On white

3.66
#BA5AEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#BA5AEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5AEA
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5AEA#FFFFFF#000000##000000
##BA5AEA1.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F81EE
Deuteranopia (green-blind)
#5088E7
Tritanopia (blue-blind)
#B5759A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #ba5aea;
/* rgb */ color: rgb(186, 90, 234);
/* oklch */ color: oklch(64.5% 0.218 312.6);
Tailwind
colors: {
  custom: {
    50: '#d28ef1',
    500: '#ba5aea',
    950: '#000000',
  },
}
SCSS
$custom: #ba5aea;
$custom-light: #d28ef1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5aea",
  "rgb": {
    "r": 186,
    "g": 90,
    "b": 234
  },
  "hsl": {
    "h": 280,
    "s": 77.419,
    "l": 63.529
  },
  "oklch": {
    "l": 0.64523,
    "c": 0.21778,
    "h": 312.6
  },
  "luminance": 0.23692
}

Semantic roles & 50–950 ramp

primary
#BA5AEA
secondary
#C7E9B6
accent
#DA0C50
background
#FDF9FE
surface
#FAF1FD
border
#D3CBD5
text
#140D17
muted
#837E85

Preview Lab

Preview with #BA5AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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