#BA2AAC#BA2AAC

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

Color values

HEX#BA2AAC
RGBrgb(186, 42, 172)
HSLhsl(306, 63%, 45%)
HSVhsv(306, 77%, 73%)
CMYKcmyk(0%, 77.4%, 7.5%, 27.1%)
CIE-LABlab(45.74, 68.64, -37.31)
CIE-LCHlch(45.74, 78.13, 331.48°)
OKLaboklab(56.18% 0.1977 -0.1026)
OKLCHoklch(56.18% 0.223 332.6)
XYZxyz(28.5242, 15.0760, 40.4294)
Luminance0.1507 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2AAC #2ABA38
analogous
#802ABA #BA2AAC #BA2A64
triadic
#BA2AAC #ACBA2A #2AACBA
tetradic
#BA2AAC #BA802A #2ABA38 #2A64BA
square
#BA2AAC #BA802A #2ABA38 #2A64BA
split-complementary
#BA2AAC #64BA2A #2ABA80
monochromatic
#561350 #881F7E #BA2AAC #D64BC9 #E27DD8

Accessibility & contrast

On white

5.23
#BA2AAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#BA2AAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2AAC
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2AAC#FFFFFF#000000##FFFFFF
##BA2AAC1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205FAF
Deuteranopia (green-blind)
#5C73A9
Tritanopia (blue-blind)
#C23B6A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba2aac;
/* rgb */ color: rgb(186, 42, 172);
/* oklch */ color: oklch(56.2% 0.223 332.6);
Tailwind
colors: {
  custom: {
    50: '#d374c5',
    500: '#ba2aac',
    950: '#000000',
  },
}
SCSS
$custom: #ba2aac;
$custom-light: #d374c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2aac",
  "rgb": {
    "r": 186,
    "g": 42,
    "b": 172
  },
  "hsl": {
    "h": 305.833,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.56181,
    "c": 0.22271,
    "h": 332.6
  },
  "luminance": 0.15074
}

Semantic roles & 50–950 ramp

primary
#BA2AAC
secondary
#76CA7E
accent
#E65242
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BA2AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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