#BA4978#BA4978

#BA4978 is a mid, vivid pink. Relative luminance 0.166; OKLCH L 56.9% C 0.153 H 357.2°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#BA4978
RGBrgb(186, 73, 120)
HSLhsl(335, 45%, 51%)
HSVhsv(335, 61%, 73%)
CMYKcmyk(0%, 60.8%, 35.5%, 27.1%)
CIE-LABlab(47.70, 50.09, -3.08)
CIE-LCHlch(47.70, 50.18, 356.49°)
OKLaboklab(56.92% 0.1528 -0.0074)
OKLCHoklch(56.92% 0.153 357.2)
XYZxyz(26.0238, 16.5630, 19.5921)
Luminance0.1656 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4978 #49BA8B
analogous
#BA49B1 #BA4978 #BA5249
triadic
#BA4978 #78BA49 #4978BA
tetradic
#BA4978 #B1BA49 #49BA8B #5249BA
square
#BA4978 #B1BA49 #49BA8B #5249BA
split-complementary
#BA4978 #49BA52 #49B1BA
monochromatic
#63263F #8F365B #BA4978 #CB7599 #DCA2BA

Accessibility & contrast

On white

4.87
#BA4978 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#BA4978 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA4978
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4978#FFFFFF#000000##FFFFFF
##BA49781.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C6479
Deuteranopia (green-blind)
#7A7975
Tritanopia (blue-blind)
#C8405B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba4978;
/* rgb */ color: rgb(186, 73, 120);
/* oklch */ color: oklch(56.9% 0.153 357.2);
Tailwind
colors: {
  custom: {
    50: '#d2819e',
    500: '#ba4978',
    950: '#000000',
  },
}
SCSS
$custom: #ba4978;
$custom-light: #d2819e;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4978",
  "rgb": {
    "r": 186,
    "g": 73,
    "b": 120
  },
  "hsl": {
    "h": 335.044,
    "s": 45.02,
    "l": 50.784
  },
  "oklch": {
    "l": 0.56916,
    "c": 0.15298,
    "h": 357.2
  },
  "luminance": 0.1656
}

Semantic roles & 50–950 ramp

primary
#BA4978
secondary
#96C8B4
accent
#D59F53
background
#FDF8F9
surface
#FAEFF2
border
#D3CACC
text
#150B0E
muted
#837C7E

Preview Lab

Preview with #BA4978

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

Preview Lab → · Contrast checker → · Palette generator →

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