#BA5ABA#BA5ABA

#BA5ABA is a mid, vivid purple. Relative luminance 0.213; OKLCH L 61.9% C 0.172 H 327.4°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#BA5ABA
RGBrgb(186, 90, 186)
HSLhsl(300, 41%, 54%)
HSVhsv(300, 52%, 73%)
CMYKcmyk(0%, 51.6%, 0%, 27.1%)
CIE-LABlab(53.27, 52.00, -33.65)
CIE-LCHlch(53.27, 61.94, 327.09°)
OKLaboklab(61.88% 0.1446 -0.0924)
OKLCHoklch(61.88% 0.172 327.4)
XYZxyz(32.7682, 21.2985, 48.8299)
Luminance0.2130 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5ABA #5ABA5A
analogous
#8A5ABA #BA5ABA #BA5A8A
triadic
#BA5ABA #BABA5A #5ABABA
tetradic
#BA5ABA #BA8A5A #5ABA5A #5A8ABA
square
#BA5ABA #BA8A5A #5ABA5A #5A8ABA
split-complementary
#BA5ABA #8ABA5A #5ABA8A
monochromatic
#6C2D6C #973F97 #BA5ABA #CC85CC #DEB0DE

Accessibility & contrast

On white

3.99
#BA5ABA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#BA5ABA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5ABA
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5ABA#FFFFFF#000000##000000
##BA5ABA1.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5177BD
Deuteranopia (green-blind)
#6E84B7
Tritanopia (blue-blind)
#BF6582
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba5aba;
/* rgb */ color: rgb(186, 90, 186);
/* oklch */ color: oklch(61.9% 0.172 327.4);
Tailwind
colors: {
  custom: {
    50: '#d18dcf',
    500: '#ba5aba',
    950: '#000000',
  },
}
SCSS
$custom: #ba5aba;
$custom-light: #d18dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5aba",
  "rgb": {
    "r": 186,
    "g": 90,
    "b": 186
  },
  "hsl": {
    "h": 300,
    "s": 41.026,
    "l": 54.118
  },
  "oklch": {
    "l": 0.61882,
    "c": 0.17158,
    "h": 327.4
  },
  "luminance": 0.21297
}

Semantic roles & 50–950 ramp

primary
#BA5ABA
secondary
#A3CCA3
accent
#D15757
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA5ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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