#BA4872#BA4872

#BA4872 is a mid, vivid pink. Relative luminance 0.163; OKLCH L 56.6% C 0.152 H 0.3°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#BA4872
RGBrgb(186, 72, 114)
HSLhsl(338, 45%, 51%)
HSVhsv(338, 61%, 73%)
CMYKcmyk(0%, 61.3%, 38.7%, 27.1%)
CIE-LABlab(47.35, 49.85, 0.05)
CIE-LCHlch(47.35, 49.85, 0.06°)
OKLaboklab(56.6% 0.1522 0.0008)
OKLCHoklch(56.6% 0.152 0.3)
XYZxyz(25.6059, 16.2916, 17.7124)
Luminance0.1629 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4872 #48BA90
analogous
#BA48AB #BA4872 #BA5748
triadic
#BA4872 #72BA48 #4872BA
tetradic
#BA4872 #ABBA48 #48BA90 #5748BA
square
#BA4872 #ABBA48 #48BA90 #5748BA
split-complementary
#BA4872 #48BA57 #48ABBA
monochromatic
#62253C #8F3657 #BA4872 #CB7494 #DCA1B6

Accessibility & contrast

On white

4.93
#BA4872 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#BA4872 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA4872
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4872#FFFFFF#000000##FFFFFF
##BA48721.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D6373
Deuteranopia (green-blind)
#7B786F
Tritanopia (blue-blind)
#C93D58
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba4872;
/* rgb */ color: rgb(186, 72, 114);
/* oklch */ color: oklch(56.6% 0.152 0.3);
Tailwind
colors: {
  custom: {
    50: '#d3819a',
    500: '#ba4872',
    950: '#000000',
  },
}
SCSS
$custom: #ba4872;
$custom-light: #d3819a;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4872",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 114
  },
  "hsl": {
    "h": 337.895,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.56595,
    "c": 0.15218,
    "h": 0.3
  },
  "luminance": 0.16289
}

Semantic roles & 50–950 ramp

primary
#BA4872
secondary
#96C8B6
accent
#D5A553
background
#FDF8F9
surface
#FBEFF2
border
#D4CACC
text
#150B0E
muted
#837C7E

Preview Lab

Preview with #BA4872

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

Preview Lab → · Contrast checker → · Palette generator →

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