#BA3172#BA3172

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

Color values

HEX#BA3172
RGBrgb(186, 49, 114)
HSLhsl(332, 58%, 46%)
HSVhsv(332, 74%, 73%)
CMYKcmyk(0%, 73.7%, 38.7%, 27.1%)
CIE-LABlab(44.02, 59.00, -4.85)
CIE-LCHlch(44.02, 59.20, 355.30°)
OKLaboklab(54.13% 0.1811 -0.012)
OKLCHoklch(54.13% 0.182 356.2)
XYZxyz(24.3869, 13.8536, 17.3061)
Luminance0.1385 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3172 #31BA79
analogous
#BA31B6 #BA3172 #BA3431
triadic
#BA3172 #72BA31 #3172BA
tetradic
#BA3172 #B6BA31 #31BA79 #3431BA
square
#BA3172 #B6BA31 #31BA79 #3431BA
split-complementary
#BA3172 #31BA34 #31B6BA
monochromatic
#591737 #8A2454 #BA3172 #D25691 #DF86B0

Accessibility & contrast

On white

5.57
#BA3172 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA3172
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3172#FFFFFF#000000##FFFFFF
##BA31721.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C5874
Deuteranopia (green-blind)
#72716F
Tritanopia (blue-blind)
#C9214D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ba3172;
/* rgb */ color: rgb(186, 49, 114);
/* oklch */ color: oklch(54.1% 0.181 356.2);
Tailwind
colors: {
  custom: {
    50: '#d4759a',
    500: '#ba3172',
    950: '#000000',
  },
}
SCSS
$custom: #ba3172;
$custom-light: #d4759a;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3172",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 114
  },
  "hsl": {
    "h": 331.533,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.54132,
    "c": 0.1815,
    "h": 356.2
  },
  "luminance": 0.13851
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA3172

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

Preview Lab → · Contrast checker → · Palette generator →

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