#BA3171#BA3171

#BA3171 is a mid, vivid pink. Relative luminance 0.138; OKLCH L 54.1% C 0.181 H 356.7°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#BA3171
RGBrgb(186, 49, 113)
HSLhsl(332, 58%, 46%)
HSVhsv(332, 74%, 73%)
CMYKcmyk(0%, 73.7%, 39.2%, 27.1%)
CIE-LABlab(43.99, 58.90, -4.28)
CIE-LCHlch(43.99, 59.05, 355.84°)
OKLaboklab(54.1% 0.1808 -0.0105)
OKLCHoklch(54.1% 0.181 356.7)
XYZxyz(24.3303, 13.8310, 17.0080)
Luminance0.1383 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3171 #31BA7A
analogous
#BA31B5 #BA3171 #BA3531
triadic
#BA3171 #71BA31 #3171BA
tetradic
#BA3171 #B5BA31 #31BA7A #3531BA
square
#BA3171 #B5BA31 #31BA7A #3531BA
split-complementary
#BA3171 #31BA35 #31B5BA
monochromatic
#591736 #8A2454 #BA3171 #D25690 #DF86B0

Accessibility & contrast

On white

5.58
#BA3171 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA3171
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3171#FFFFFF#000000##FFFFFF
##BA31711.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D5873
Deuteranopia (green-blind)
#72716E
Tritanopia (blue-blind)
#C9204D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ba3171;
/* rgb */ color: rgb(186, 49, 113);
/* oklch */ color: oklch(54.1% 0.181 356.7);
Tailwind
colors: {
  custom: {
    50: '#d47599',
    500: '#ba3171',
    950: '#000000',
  },
}
SCSS
$custom: #ba3171;
$custom-light: #d47599;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3171",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 113
  },
  "hsl": {
    "h": 331.971,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.54097,
    "c": 0.1811,
    "h": 356.7
  },
  "luminance": 0.13828
}

Semantic roles & 50–950 ramp

primary
#BA3171
secondary
#7EC9A6
accent
#E29946
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#15090E
muted
#837B7E

Preview Lab

Preview with #BA3171

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

Preview Lab → · Contrast checker → · Palette generator →

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