#BA3981#BA3981

#BA3981 is a mid, vivid pink. Relative luminance 0.149; OKLCH L 55.4% C 0.179 H 350.2°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#BA3981
RGBrgb(186, 57, 129)
HSLhsl(327, 53%, 48%)
HSVhsv(327, 69%, 73%)
CMYKcmyk(0%, 69.4%, 30.6%, 27.1%)
CIE-LABlab(45.57, 57.84, -11.73)
CIE-LCHlch(45.57, 59.01, 348.53°)
OKLaboklab(55.44% 0.1763 -0.0306)
OKLCHoklch(55.44% 0.179 350.2)
XYZxyz(25.6766, 14.9532, 22.2987)
Luminance0.1495 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3981 #39BA72
analogous
#B339BA #BA3981 #BA3940
triadic
#BA3981 #81BA39 #3981BA
tetradic
#BA3981 #BAB339 #39BA72 #3940BA
square
#BA3981 #BAB339 #39BA72 #3940BA
split-complementary
#BA3981 #40BA39 #39BAB3
monochromatic
#5C1C40 #8B2B61 #BA3981 #CF619E #DD90BB

Accessibility & contrast

On white

5.26
#BA3981 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#BA3981 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3981
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3981#FFFFFF#000000##FFFFFF
##BA39811.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C5D83
Deuteranopia (green-blind)
#71747E
Tritanopia (blue-blind)
#C73258
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba3981;
/* rgb */ color: rgb(186, 57, 129);
/* oklch */ color: oklch(55.4% 0.179 350.2);
Tailwind
colors: {
  custom: {
    50: '#d379a5',
    500: '#ba3981',
    950: '#000000',
  },
}
SCSS
$custom: #ba3981;
$custom-light: #d379a5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3981",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 129
  },
  "hsl": {
    "h": 326.512,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.55438,
    "c": 0.17895,
    "h": 350.2
  },
  "luminance": 0.1495
}

Semantic roles & 50–950 ramp

primary
#BA3981
secondary
#87C8A4
accent
#DC8B4B
background
#FDF7FA
surface
#FBEEF4
border
#D4C9CE
text
#150A0F
muted
#837C7F

Preview Lab

Preview with #BA3981

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

Preview Lab → · Contrast checker → · Palette generator →

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