#BA2A9C#BA2A9C

#BA2A9C is a mid, highly saturated pink. Relative luminance 0.145; OKLCH L 55.3% C 0.212 H 338.2°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#BA2A9C
RGBrgb(186, 42, 156)
HSLhsl(313, 63%, 45%)
HSVhsv(313, 77%, 73%)
CMYKcmyk(0%, 77.4%, 16.1%, 27.1%)
CIE-LABlab(44.94, 66.34, -29.03)
CIE-LCHlch(44.94, 72.41, 336.37°)
OKLaboklab(55.35% 0.1966 -0.0788)
OKLCHoklch(55.35% 0.212 338.2)
XYZxyz(27.0791, 14.4980, 32.8183)
Luminance0.1449 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2A9C #2ABA48
analogous
#902ABA #BA2A9C #BA2A54
triadic
#BA2A9C #9CBA2A #2A9CBA
tetradic
#BA2A9C #BA902A #2ABA48 #2A54BA
square
#BA2A9C #BA902A #2ABA48 #2A54BA
split-complementary
#BA2A9C #54BA2A #2ABA90
monochromatic
#561348 #881F72 #BA2A9C #D64BB9 #E27DCD

Accessibility & contrast

On white

5.39
#BA2A9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#BA2A9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2A9C
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2A9C#FFFFFF#000000##FFFFFF
##BA2A9C1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315C9F
Deuteranopia (green-blind)
#637299
Tritanopia (blue-blind)
#C53261
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba2a9c;
/* rgb */ color: rgb(186, 42, 156);
/* oklch */ color: oklch(55.3% 0.212 338.2);
Tailwind
colors: {
  custom: {
    50: '#d374b9',
    500: '#ba2a9c',
    950: '#000000',
  },
}
SCSS
$custom: #ba2a9c;
$custom-light: #d374b9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2a9c",
  "rgb": {
    "r": 186,
    "g": 42,
    "b": 156
  },
  "hsl": {
    "h": 312.5,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55348,
    "c": 0.21183,
    "h": 338.2
  },
  "luminance": 0.14495
}

Semantic roles & 50–950 ramp

primary
#BA2A9C
secondary
#76CA87
accent
#E66442
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA2A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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