#BA2173#BA2173

#BA2173 is a mid, vivid pink. Relative luminance 0.128; OKLCH L 53.0% C 0.197 H 354.2°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#BA2173
RGBrgb(186, 33, 115)
HSLhsl(328, 70%, 43%)
HSVhsv(328, 82%, 73%)
CMYKcmyk(0%, 82.3%, 38.2%, 27.1%)
CIE-LABlab(42.41, 63.77, -7.87)
CIE-LCHlch(42.41, 64.26, 352.96°)
OKLaboklab(52.97% 0.1963 -0.02)
OKLCHoklch(52.97% 0.197 354.2)
XYZxyz(23.8897, 12.7677, 17.4227)
Luminance0.1277 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2173 #21BA68
analogous
#B421BA #BA2173 #BA2127
triadic
#BA2173 #73BA21 #2173BA
tetradic
#BA2173 #BAB421 #21BA68 #2127BA
square
#BA2173 #BAB421 #21BA68 #2127BA
split-complementary
#BA2173 #27BA21 #21BAB4
monochromatic
#520F33 #861853 #BA2173 #DC3C92 #E670AF

Accessibility & contrast

On white

5.91
#BA2173 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#BA2173 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2173
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2173#FFFFFF#000000##FFFFFF
##BA21731.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435275
Deuteranopia (green-blind)
#6D6E70
Tritanopia (blue-blind)
#C90348
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ba2173;
/* rgb */ color: rgb(186, 33, 115);
/* oklch */ color: oklch(53.0% 0.197 354.2);
Tailwind
colors: {
  custom: {
    50: '#d46f9b',
    500: '#ba2173',
    950: '#000000',
  },
}
SCSS
$custom: #ba2173;
$custom-light: #d46f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2173",
  "rgb": {
    "r": 186,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 327.843,
    "s": 69.863,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52965,
    "c": 0.19728,
    "h": 354.2
  },
  "luminance": 0.12765
}

Semantic roles & 50–950 ramp

primary
#BA2173
secondary
#6BCC98
accent
#ED8E3B
background
#FDF7F9
surface
#FBEDF2
border
#D4C8CC
text
#15080E
muted
#837B7E

Preview Lab

Preview with #BA2173

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

Preview Lab → · Contrast checker → · Palette generator →

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