#BA2A9D#BA2A9D

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

Color values

HEX#BA2A9D
RGBrgb(186, 42, 157)
HSLhsl(312, 63%, 45%)
HSVhsv(312, 77%, 73%)
CMYKcmyk(0%, 77.4%, 15.6%, 27.1%)
CIE-LABlab(44.99, 66.48, -29.55)
CIE-LCHlch(44.99, 72.75, 336.03°)
OKLaboklab(55.4% 0.1967 -0.0803)
OKLCHoklch(55.4% 0.212 337.8)
XYZxyz(27.1641, 14.5320, 33.2661)
Luminance0.1453 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2A9D #2ABA47
analogous
#8F2ABA #BA2A9D #BA2A55
triadic
#BA2A9D #9DBA2A #2A9DBA
tetradic
#BA2A9D #BA8F2A #2ABA47 #2A55BA
square
#BA2A9D #BA8F2A #2ABA47 #2A55BA
split-complementary
#BA2A9D #55BA2A #2ABA8F
monochromatic
#561349 #881F73 #BA2A9D #D64BBA #E27DCD

Accessibility & contrast

On white

5.38
#BA2A9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#BA2A9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2A9D
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2A9D#FFFFFF#000000##FFFFFF
##BA2A9D1.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305CA0
Deuteranopia (green-blind)
#62729A
Tritanopia (blue-blind)
#C43361
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba2a9d;
/* rgb */ color: rgb(186, 42, 157);
/* oklch */ color: oklch(55.4% 0.212 337.8);
Tailwind
colors: {
  custom: {
    50: '#d374ba',
    500: '#ba2a9d',
    950: '#000000',
  },
}
SCSS
$custom: #ba2a9d;
$custom-light: #d374ba;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2a9d",
  "rgb": {
    "r": 186,
    "g": 42,
    "b": 157
  },
  "hsl": {
    "h": 312.083,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55398,
    "c": 0.21249,
    "h": 337.8
  },
  "luminance": 0.14529
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA2A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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