#BA3978#BA3978

#BA3978 is a mid, vivid pink. Relative luminance 0.147; OKLCH L 55.1% C 0.175 H 354.4°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#BA3978
RGBrgb(186, 57, 120)
HSLhsl(331, 53%, 48%)
HSVhsv(331, 69%, 73%)
CMYKcmyk(0%, 69.4%, 35.5%, 27.1%)
CIE-LABlab(45.25, 56.78, -6.71)
CIE-LCHlch(45.25, 57.17, 353.26°)
OKLaboklab(55.1% 0.1738 -0.017)
OKLCHoklch(55.1% 0.175 354.4)
XYZxyz(25.1045, 14.7243, 19.2857)
Luminance0.1472 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3978 #39BA7B
analogous
#BA39B8 #BA3978 #BA3B39
triadic
#BA3978 #78BA39 #3978BA
tetradic
#BA3978 #B8BA39 #39BA7B #3B39BA
square
#BA3978 #B8BA39 #39BA7B #3B39BA
split-complementary
#BA3978 #39BA3B #39B8BA
monochromatic
#5C1C3C #8B2B5A #BA3978 #CF6197 #DD90B6

Accessibility & contrast

On white

5.32
#BA3978 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#BA3978 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3978
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3978#FFFFFF#000000##FFFFFF
##BA39781.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#505C7A
Deuteranopia (green-blind)
#737475
Tritanopia (blue-blind)
#C82E54
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba3978;
/* rgb */ color: rgb(186, 57, 120);
/* oklch */ color: oklch(55.1% 0.175 354.4);
Tailwind
colors: {
  custom: {
    50: '#d3799e',
    500: '#ba3978',
    950: '#000000',
  },
}
SCSS
$custom: #ba3978;
$custom-light: #d3799e;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3978",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 120
  },
  "hsl": {
    "h": 330.698,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.55102,
    "c": 0.17463,
    "h": 354.4
  },
  "luminance": 0.14721
}

Semantic roles & 50–950 ramp

primary
#BA3978
secondary
#87C8A8
accent
#DC964B
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#150A0E
muted
#837C7E

Preview Lab

Preview with #BA3978

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

Preview Lab → · Contrast checker → · Palette generator →

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