#BA2AAD#BA2AAD

#BA2AAD is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.2% C 0.223 H 332.2°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#BA2AAD
RGBrgb(186, 42, 173)
HSLhsl(305, 63%, 45%)
HSVhsv(305, 77%, 73%)
CMYKcmyk(0%, 77.4%, 7%, 27.1%)
CIE-LABlab(45.79, 68.79, -37.81)
CIE-LCHlch(45.79, 78.50, 331.20°)
OKLaboklab(56.24% 0.1977 -0.1041)
OKLCHoklch(56.24% 0.223 332.2)
XYZxyz(28.6206, 15.1146, 40.9371)
Luminance0.1511 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2AAD #2ABA37
analogous
#7F2ABA #BA2AAD #BA2A65
triadic
#BA2AAD #ADBA2A #2AADBA
tetradic
#BA2AAD #BA7F2A #2ABA37 #2A65BA
square
#BA2AAD #BA7F2A #2ABA37 #2A65BA
split-complementary
#BA2AAD #65BA2A #2ABA7F
monochromatic
#561350 #881F7F #BA2AAD #D64BCA #E27DD8

Accessibility & contrast

On white

5.22
#BA2AAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#BA2AAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2AAD
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2AAD#FFFFFF#000000##FFFFFF
##BA2AAD1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F60B0
Deuteranopia (green-blind)
#5B73AA
Tritanopia (blue-blind)
#C23C6A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba2aad;
/* rgb */ color: rgb(186, 42, 173);
/* oklch */ color: oklch(56.2% 0.223 332.2);
Tailwind
colors: {
  custom: {
    50: '#d374c6',
    500: '#ba2aad',
    950: '#000000',
  },
}
SCSS
$custom: #ba2aad;
$custom-light: #d374c6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2aad",
  "rgb": {
    "r": 186,
    "g": 42,
    "b": 173
  },
  "hsl": {
    "h": 305.417,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.56236,
    "c": 0.22341,
    "h": 332.2
  },
  "luminance": 0.15112
}

Semantic roles & 50–950 ramp

primary
#BA2AAD
secondary
#76CA7D
accent
#E65042
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BA2AAD

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

Preview Lab → · Contrast checker → · Palette generator →

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