#BA4ABA#BA4ABA

#BA4ABA is a mid, vivid purple. Relative luminance 0.189; OKLCH L 59.9% C 0.196 H 327.7°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#BA4ABA
RGBrgb(186, 74, 186)
HSLhsl(300, 45%, 51%)
HSVhsv(300, 60%, 73%)
CMYKcmyk(0%, 60.2%, 0%, 27.1%)
CIE-LABlab(50.55, 59.38, -37.92)
CIE-LCHlch(50.55, 70.46, 327.44°)
OKLaboklab(59.89% 0.1654 -0.1046)
OKLCHoklch(59.89% 0.196 327.7)
XYZxyz(31.5609, 18.8839, 48.4275)
Luminance0.1888 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4ABA #4ABA4A
analogous
#824ABA #BA4ABA #BA4A82
triadic
#BA4ABA #BABA4A #4ABABA
tetradic
#BA4ABA #BA824A #4ABA4A #4A82BA
square
#BA4ABA #BA824A #4ABA4A #4A82BA
split-complementary
#BA4ABA #82BA4A #4ABA82
monochromatic
#642664 #903790 #BA4ABA #CB76CB #DCA3DC

Accessibility & contrast

On white

4.40
#BA4ABA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#BA4ABA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4ABA
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4ABA#FFFFFF#000000##000000
##BA4ABA1.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D6FBD
Deuteranopia (green-blind)
#647EB7
Tritanopia (blue-blind)
#BF587B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba4aba;
/* rgb */ color: rgb(186, 74, 186);
/* oklch */ color: oklch(59.9% 0.196 327.7);
Tailwind
colors: {
  custom: {
    50: '#d284cf',
    500: '#ba4aba',
    950: '#000000',
  },
}
SCSS
$custom: #ba4aba;
$custom-light: #d284cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4aba",
  "rgb": {
    "r": 186,
    "g": 74,
    "b": 186
  },
  "hsl": {
    "h": 300,
    "s": 44.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.59887,
    "c": 0.19567,
    "h": 327.7
  },
  "luminance": 0.18882
}

Semantic roles & 50–950 ramp

primary
#BA4ABA
secondary
#97C997
accent
#D55353
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #BA4ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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