#BA3173#BA3173

#BA3173 is a mid, vivid pink. Relative luminance 0.139; OKLCH L 54.2% C 0.182 H 355.7°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#BA3173
RGBrgb(186, 49, 115)
HSLhsl(331, 58%, 46%)
HSVhsv(331, 74%, 73%)
CMYKcmyk(0%, 73.7%, 38.2%, 27.1%)
CIE-LABlab(44.06, 59.11, -5.42)
CIE-LCHlch(44.06, 59.36, 354.76°)
OKLaboklab(54.17% 0.1814 -0.0135)
OKLCHoklch(54.17% 0.182 355.7)
XYZxyz(24.4441, 13.8765, 17.6075)
Luminance0.1387 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3173 #31BA78
analogous
#BA31B7 #BA3173 #BA3331
triadic
#BA3173 #73BA31 #3173BA
tetradic
#BA3173 #B7BA31 #31BA78 #3331BA
square
#BA3173 #B7BA31 #31BA78 #3331BA
split-complementary
#BA3173 #31BA33 #31B7BA
monochromatic
#591737 #8A2455 #BA3173 #D25692 #DF86B1

Accessibility & contrast

On white

5.56
#BA3173 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#BA3173 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3173
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3173#FFFFFF#000000##FFFFFF
##BA31731.005.563.775.56
#FFFFFF5.561.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C5875
Deuteranopia (green-blind)
#727170
Tritanopia (blue-blind)
#C9214E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ba3173;
/* rgb */ color: rgb(186, 49, 115);
/* oklch */ color: oklch(54.2% 0.182 355.7);
Tailwind
colors: {
  custom: {
    50: '#d4759b',
    500: '#ba3173',
    950: '#000000',
  },
}
SCSS
$custom: #ba3173;
$custom-light: #d4759b;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3173",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 115
  },
  "hsl": {
    "h": 331.095,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.54167,
    "c": 0.18191,
    "h": 355.7
  },
  "luminance": 0.13874
}

Semantic roles & 50–950 ramp

primary
#BA3173
secondary
#7EC9A5
accent
#E29746
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#15090E
muted
#837B7E

Preview Lab

Preview with #BA3173

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

Preview Lab → · Contrast checker → · Palette generator →

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