#BA2A9F#BA2A9F

#BA2A9F is a mid, highly saturated pink. Relative luminance 0.146; OKLCH L 55.5% C 0.214 H 337.1°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#BA2A9F
RGBrgb(186, 42, 159)
HSLhsl(311, 63%, 45%)
HSVhsv(311, 77%, 73%)
CMYKcmyk(0%, 77.4%, 14.5%, 27.1%)
CIE-LABlab(45.08, 66.76, -30.60)
CIE-LCHlch(45.08, 73.44, 335.37°)
OKLaboklab(55.5% 0.1969 -0.0833)
OKLCHoklch(55.5% 0.214 337.1)
XYZxyz(27.3362, 14.6008, 34.1727)
Luminance0.1460 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2A9F #2ABA45
analogous
#8D2ABA #BA2A9F #BA2A57
triadic
#BA2A9F #9FBA2A #2A9FBA
tetradic
#BA2A9F #BA8D2A #2ABA45 #2A57BA
square
#BA2A9F #BA8D2A #2ABA45 #2A57BA
split-complementary
#BA2A9F #57BA2A #2ABA8D
monochromatic
#56134A #881F74 #BA2A9F #D64BBC #E27DCF

Accessibility & contrast

On white

5.36
#BA2A9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#BA2A9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2A9F
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2A9F#FFFFFF#000000##FFFFFF
##BA2A9F1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5DA2
Deuteranopia (green-blind)
#62729C
Tritanopia (blue-blind)
#C43463
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba2a9f;
/* rgb */ color: rgb(186, 42, 159);
/* oklch */ color: oklch(55.5% 0.214 337.1);
Tailwind
colors: {
  custom: {
    50: '#d374bb',
    500: '#ba2a9f',
    950: '#000000',
  },
}
SCSS
$custom: #ba2a9f;
$custom-light: #d374bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2a9f",
  "rgb": {
    "r": 186,
    "g": 42,
    "b": 159
  },
  "hsl": {
    "h": 311.25,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55499,
    "c": 0.21381,
    "h": 337.1
  },
  "luminance": 0.14598
}

Semantic roles & 50–950 ramp

primary
#BA2A9F
secondary
#76CA86
accent
#E66042
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA2A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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