#BA478A#BA478A

#BA478A is a mid, vivid pink. Relative luminance 0.168; OKLCH L 57.3% C 0.165 H 347.5°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#BA478A
RGBrgb(186, 71, 138)
HSLhsl(325, 45%, 50%)
HSVhsv(325, 62%, 73%)
CMYKcmyk(0%, 61.8%, 25.8%, 27.1%)
CIE-LABlab(47.99, 53.25, -13.52)
CIE-LCHlch(47.99, 54.94, 345.75°)
OKLaboklab(57.33% 0.1609 -0.0356)
OKLCHoklch(57.33% 0.165 347.5)
XYZxyz(27.0914, 16.7832, 25.8525)
Luminance0.1678 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA478A #47BA77
analogous
#B047BA #BA478A #BA4750
triadic
#BA478A #8ABA47 #478ABA
tetradic
#BA478A #BAB047 #47BA77 #4750BA
square
#BA478A #BAB047 #47BA77 #4750BA
split-complementary
#BA478A #50BA47 #47BAB0
monochromatic
#622548 #8E3569 #BA478A #CB74A6 #DBA0C3

Accessibility & contrast

On white

4.82
#BA478A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#BA478A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA478A
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA478A#FFFFFF#000000##FFFFFF
##BA478A1.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#54658C
Deuteranopia (green-blind)
#757987
Tritanopia (blue-blind)
#C64462
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba478a;
/* rgb */ color: rgb(186, 71, 138);
/* oklch */ color: oklch(57.3% 0.165 347.5);
Tailwind
colors: {
  custom: {
    50: '#d281ac',
    500: '#ba478a',
    950: '#000000',
  },
}
SCSS
$custom: #ba478a;
$custom-light: #d281ac;
$custom-dark: #000000;
JSON
{
  "hex": "#ba478a",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 138
  },
  "hsl": {
    "h": 325.043,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.57325,
    "c": 0.16483,
    "h": 347.5
  },
  "luminance": 0.16781
}

Semantic roles & 50–950 ramp

primary
#BA478A
secondary
#95C8AA
accent
#D58953
background
#FDF8FA
surface
#FAEFF4
border
#D3CACE
text
#140B10
muted
#837C7F

Preview Lab

Preview with #BA478A

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

Preview Lab → · Contrast checker → · Palette generator →

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