#BA3179#BA3179

#BA3179 is a mid, vivid pink. Relative luminance 0.140; OKLCH L 54.4% C 0.185 H 353.0°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#BA3179
RGBrgb(186, 49, 121)
HSLhsl(328, 58%, 46%)
HSVhsv(328, 74%, 73%)
CMYKcmyk(0%, 73.7%, 34.9%, 27.1%)
CIE-LABlab(44.26, 59.76, -8.81)
CIE-LCHlch(44.26, 60.41, 351.62°)
OKLaboklab(54.38% 0.1832 -0.0226)
OKLCHoklch(54.38% 0.185 353)
XYZxyz(24.8007, 14.0192, 19.4854)
Luminance0.1402 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3179 #31BA72
analogous
#B631BA #BA3179 #BA3134
triadic
#BA3179 #79BA31 #3179BA
tetradic
#BA3179 #BAB631 #31BA72 #3134BA
square
#BA3179 #BAB631 #31BA72 #3134BA
split-complementary
#BA3179 #34BA31 #31BAB6
monochromatic
#59173A #8A2459 #BA3179 #D25697 #DF86B5

Accessibility & contrast

On white

5.52
#BA3179 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#BA3179 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3179
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3179#FFFFFF#000000##FFFFFF
##BA31791.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A597B
Deuteranopia (green-blind)
#707276
Tritanopia (blue-blind)
#C82551
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba3179;
/* rgb */ color: rgb(186, 49, 121);
/* oklch */ color: oklch(54.4% 0.185 353.0);
Tailwind
colors: {
  custom: {
    50: '#d3759f',
    500: '#ba3179',
    950: '#000000',
  },
}
SCSS
$custom: #ba3179;
$custom-light: #d3759f;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3179",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 121
  },
  "hsl": {
    "h": 328.467,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.54384,
    "c": 0.18454,
    "h": 353
  },
  "luminance": 0.14016
}

Semantic roles & 50–950 ramp

primary
#BA3179
secondary
#7EC9A1
accent
#E29046
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#15090E
muted
#837B7E

Preview Lab

Preview with #BA3179

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

Preview Lab → · Contrast checker → · Palette generator →

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