#BA3178#BA3178

#BA3178 is a mid, vivid pink. Relative luminance 0.140; OKLCH L 54.3% C 0.184 H 353.4°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#BA3178
RGBrgb(186, 49, 120)
HSLhsl(329, 58%, 46%)
HSVhsv(329, 74%, 73%)
CMYKcmyk(0%, 73.7%, 35.5%, 27.1%)
CIE-LABlab(44.23, 59.65, -8.25)
CIE-LCHlch(44.23, 60.22, 352.13°)
OKLaboklab(54.35% 0.1829 -0.0211)
OKLCHoklch(54.35% 0.184 353.4)
XYZxyz(24.7397, 13.9948, 19.1641)
Luminance0.1399 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3178 #31BA73
analogous
#B731BA #BA3178 #BA3133
triadic
#BA3178 #78BA31 #3178BA
tetradic
#BA3178 #BAB731 #31BA73 #3133BA
square
#BA3178 #BAB731 #31BA73 #3133BA
split-complementary
#BA3178 #33BA31 #31BAB7
monochromatic
#591739 #8A2459 #BA3178 #D25696 #DF86B4

Accessibility & contrast

On white

5.53
#BA3178 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA3178
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3178#FFFFFF#000000##FFFFFF
##BA31781.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A597A
Deuteranopia (green-blind)
#717275
Tritanopia (blue-blind)
#C82450
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba3178;
/* rgb */ color: rgb(186, 49, 120);
/* oklch */ color: oklch(54.3% 0.184 353.4);
Tailwind
colors: {
  custom: {
    50: '#d3759f',
    500: '#ba3178',
    950: '#000000',
  },
}
SCSS
$custom: #ba3178;
$custom-light: #d3759f;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3178",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 120
  },
  "hsl": {
    "h": 328.905,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.54347,
    "c": 0.18408,
    "h": 353.4
  },
  "luminance": 0.13992
}

Semantic roles & 50–950 ramp

primary
#BA3178
secondary
#7EC9A2
accent
#E29146
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#15090E
muted
#837B7E

Preview Lab

Preview with #BA3178

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

Preview Lab → · Contrast checker → · Palette generator →

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