#BA3174#BA3174

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

Color values

HEX#BA3174
RGBrgb(186, 49, 116)
HSLhsl(331, 58%, 46%)
HSVhsv(331, 74%, 73%)
CMYKcmyk(0%, 73.7%, 37.6%, 27.1%)
CIE-LABlab(44.09, 59.21, -5.99)
CIE-LCHlch(44.09, 59.52, 354.23°)
OKLaboklab(54.2% 0.1817 -0.015)
OKLCHoklch(54.2% 0.182 355.3)
XYZxyz(24.5020, 13.8997, 17.9122)
Luminance0.1390 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3174 #31BA77
analogous
#BA31B8 #BA3174 #BA3231
triadic
#BA3174 #74BA31 #3174BA
tetradic
#BA3174 #B8BA31 #31BA77 #3231BA
square
#BA3174 #B8BA31 #31BA77 #3231BA
split-complementary
#BA3174 #31BA32 #31B8BA
monochromatic
#591738 #8A2456 #BA3174 #D25693 #DF86B2

Accessibility & contrast

On white

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

On black

3.78
#BA3174 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##BA3174#FFFFFF#000000##FFFFFF
##BA31741.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C5876
Deuteranopia (green-blind)
#727171
Tritanopia (blue-blind)
#C9224E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ba3174;
/* rgb */ color: rgb(186, 49, 116);
/* oklch */ color: oklch(54.2% 0.182 355.3);
Tailwind
colors: {
  custom: {
    50: '#d4759c',
    500: '#ba3174',
    950: '#000000',
  },
}
SCSS
$custom: #ba3174;
$custom-light: #d4759c;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3174",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 116
  },
  "hsl": {
    "h": 330.657,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.54202,
    "c": 0.18233,
    "h": 355.3
  },
  "luminance": 0.13897
}

Semantic roles & 50–950 ramp

primary
#BA3174
secondary
#7EC9A4
accent
#E29646
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#15090E
muted
#837B7E

Preview Lab

Preview with #BA3174

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

Preview Lab → · Contrast checker → · Palette generator →

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