#BA478C#BA478C

#BA478C is a mid, vivid pink. Relative luminance 0.168; OKLCH L 57.4% C 0.166 H 346.6°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#BA478C
RGBrgb(186, 71, 140)
HSLhsl(324, 45%, 50%)
HSVhsv(324, 62%, 73%)
CMYKcmyk(0%, 61.8%, 24.7%, 27.1%)
CIE-LABlab(48.06, 53.52, -14.61)
CIE-LCHlch(48.06, 55.48, 344.73°)
OKLaboklab(57.4% 0.1615 -0.0386)
OKLCHoklch(57.4% 0.166 346.6)
XYZxyz(27.2375, 16.8417, 26.6222)
Luminance0.1684 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA478C #47BA75
analogous
#AF47BA #BA478C #BA4752
triadic
#BA478C #8CBA47 #478CBA
tetradic
#BA478C #BAAF47 #47BA75 #4752BA
square
#BA478C #BAAF47 #47BA75 #4752BA
split-complementary
#BA478C #52BA47 #47BAAF
monochromatic
#622549 #8E356B #BA478C #CB74A8 #DBA0C4

Accessibility & contrast

On white

4.81
#BA478C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#BA478C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA478C
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA478C#FFFFFF#000000##FFFFFF
##BA478C1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#53668E
Deuteranopia (green-blind)
#747989
Tritanopia (blue-blind)
#C64563
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba478c;
/* rgb */ color: rgb(186, 71, 140);
/* oklch */ color: oklch(57.4% 0.166 346.6);
Tailwind
colors: {
  custom: {
    50: '#d281ad',
    500: '#ba478c',
    950: '#000000',
  },
}
SCSS
$custom: #ba478c;
$custom-light: #d281ad;
$custom-dark: #000000;
JSON
{
  "hex": "#ba478c",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 140
  },
  "hsl": {
    "h": 324,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.57404,
    "c": 0.16601,
    "h": 346.6
  },
  "luminance": 0.16839
}

Semantic roles & 50–950 ramp

primary
#BA478C
secondary
#95C8A9
accent
#D58753
background
#FDF8FA
surface
#FAEFF4
border
#D3CACE
text
#140B10
muted
#837C7F

Preview Lab

Preview with #BA478C

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

Preview Lab → · Contrast checker → · Palette generator →

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