#BA4AB2#BA4AB2

#BA4AB2 is a mid, vivid purple. Relative luminance 0.186; OKLCH L 59.5% C 0.189 H 330.5°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#BA4AB2
RGBrgb(186, 74, 178)
HSLhsl(304, 45%, 51%)
HSVhsv(304, 60%, 73%)
CMYKcmyk(0%, 60.2%, 4.3%, 27.1%)
CIE-LABlab(50.16, 58.01, -33.88)
CIE-LCHlch(50.16, 67.18, 329.72°)
OKLaboklab(59.48% 0.1646 -0.093)
OKLCHoklch(59.48% 0.189 330.5)
XYZxyz(30.7342, 18.5532, 44.0732)
Luminance0.1855 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4AB2 #4ABA52
analogous
#8A4ABA #BA4AB2 #BA4A7A
triadic
#BA4AB2 #B2BA4A #4AB2BA
tetradic
#BA4AB2 #BA8A4A #4ABA52 #4A7ABA
square
#BA4AB2 #BA8A4A #4ABA52 #4A7ABA
split-complementary
#BA4AB2 #7ABA4A #4ABA8A
monochromatic
#64265F #90378A #BA4AB2 #CB76C5 #DCA3D8

Accessibility & contrast

On white

4.46
#BA4AB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#BA4AB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4AB2
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4AB2#FFFFFF#000000##000000
##BA4AB21.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#436DB5
Deuteranopia (green-blind)
#687DAF
Tritanopia (blue-blind)
#C15577
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba4ab2;
/* rgb */ color: rgb(186, 74, 178);
/* oklch */ color: oklch(59.5% 0.189 330.5);
Tailwind
colors: {
  custom: {
    50: '#d283c9',
    500: '#ba4ab2',
    950: '#000000',
  },
}
SCSS
$custom: #ba4ab2;
$custom-light: #d283c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4ab2",
  "rgb": {
    "r": 186,
    "g": 74,
    "b": 178
  },
  "hsl": {
    "h": 304.286,
    "s": 44.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.59475,
    "c": 0.18901,
    "h": 330.5
  },
  "luminance": 0.18551
}

Semantic roles & 50–950 ramp

primary
#BA4AB2
secondary
#97C99B
accent
#D55D53
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA4AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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