#BA2AA4#BA2AA4

#BA2AA4 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.8% C 0.217 H 335.3°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#BA2AA4
RGBrgb(186, 42, 164)
HSLhsl(309, 63%, 45%)
HSVhsv(309, 77%, 73%)
CMYKcmyk(0%, 77.4%, 11.8%, 27.1%)
CIE-LABlab(45.33, 67.47, -33.20)
CIE-LCHlch(45.33, 75.19, 333.80°)
OKLaboklab(55.76% 0.1973 -0.0908)
OKLCHoklch(55.76% 0.217 335.3)
XYZxyz(27.7789, 14.7779, 36.5042)
Luminance0.1477 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2AA4 #2ABA40
analogous
#882ABA #BA2AA4 #BA2A5C
triadic
#BA2AA4 #A4BA2A #2AA4BA
tetradic
#BA2AA4 #BA882A #2ABA40 #2A5CBA
square
#BA2AA4 #BA882A #2ABA40 #2A5CBA
split-complementary
#BA2AA4 #5CBA2A #2ABA88
monochromatic
#56134C #881F78 #BA2AA4 #D64BC1 #E27DD2

Accessibility & contrast

On white

5.31
#BA2AA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#BA2AA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2AA4
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2AA4#FFFFFF#000000##FFFFFF
##BA2AA41.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5EA7
Deuteranopia (green-blind)
#5F73A1
Tritanopia (blue-blind)
#C33765
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba2aa4;
/* rgb */ color: rgb(186, 42, 164);
/* oklch */ color: oklch(55.8% 0.217 335.3);
Tailwind
colors: {
  custom: {
    50: '#d374bf',
    500: '#ba2aa4',
    950: '#000000',
  },
}
SCSS
$custom: #ba2aa4;
$custom-light: #d374bf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2aa4",
  "rgb": {
    "r": 186,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 309.167,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55755,
    "c": 0.21718,
    "h": 335.3
  },
  "luminance": 0.14775
}

Semantic roles & 50–950 ramp

primary
#BA2AA4
secondary
#76CA83
accent
#E65B42
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA2AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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