#BA4879#BA4879

#BA4879 is a mid, vivid pink. Relative luminance 0.165; OKLCH L 56.8% C 0.155 H 356.5°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#BA4879
RGBrgb(186, 72, 121)
HSLhsl(334, 45%, 51%)
HSVhsv(334, 61%, 73%)
CMYKcmyk(0%, 61.3%, 34.9%, 27.1%)
CIE-LABlab(47.57, 50.65, -3.88)
CIE-LCHlch(47.57, 50.80, 355.62°)
OKLaboklab(56.83% 0.1545 -0.0096)
OKLCHoklch(56.83% 0.155 356.5)
XYZxyz(26.0197, 16.4571, 19.8917)
Luminance0.1645 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4879 #48BA89
analogous
#BA48B2 #BA4879 #BA5048
triadic
#BA4879 #79BA48 #4879BA
tetradic
#BA4879 #B2BA48 #48BA89 #5048BA
square
#BA4879 #B2BA48 #48BA89 #5048BA
split-complementary
#BA4879 #48BA50 #48B2BA
monochromatic
#62253F #8F365C #BA4879 #CB749A #DCA1BA

Accessibility & contrast

On white

4.89
#BA4879 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#BA4879 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA4879
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4879#FFFFFF#000000##FFFFFF
##BA48791.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B647A
Deuteranopia (green-blind)
#797976
Tritanopia (blue-blind)
#C83F5B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba4879;
/* rgb */ color: rgb(186, 72, 121);
/* oklch */ color: oklch(56.8% 0.155 356.5);
Tailwind
colors: {
  custom: {
    50: '#d3819f',
    500: '#ba4879',
    950: '#000000',
  },
}
SCSS
$custom: #ba4879;
$custom-light: #d3819f;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4879",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 121
  },
  "hsl": {
    "h": 334.211,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.56825,
    "c": 0.15484,
    "h": 356.5
  },
  "luminance": 0.16454
}

Semantic roles & 50–950 ramp

primary
#BA4879
secondary
#96C8B2
accent
#D59D53
background
#FDF8F9
surface
#FAEFF2
border
#D3CACC
text
#150B0E
muted
#837C7E

Preview Lab

Preview with #BA4879

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

Preview Lab → · Contrast checker → · Palette generator →

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