#BA477C#BA477C

#BA477C is a mid, vivid pink. Relative luminance 0.164; OKLCH L 56.8% C 0.158 H 354.7°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#BA477C
RGBrgb(186, 71, 124)
HSLhsl(332, 45%, 50%)
HSVhsv(332, 62%, 73%)
CMYKcmyk(0%, 61.8%, 33.3%, 27.1%)
CIE-LABlab(47.50, 51.46, -5.80)
CIE-LCHlch(47.50, 51.79, 353.57°)
OKLaboklab(56.81% 0.1569 -0.0147)
OKLCHoklch(56.81% 0.158 354.7)
XYZxyz(26.1424, 16.4036, 20.8543)
Luminance0.1640 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA477C #47BA85
analogous
#BA47B5 #BA477C #BA4B47
triadic
#BA477C #7CBA47 #477CBA
tetradic
#BA477C #B5BA47 #47BA85 #4B47BA
square
#BA477C #B5BA47 #47BA85 #4B47BA
split-complementary
#BA477C #47BA4B #47B5BA
monochromatic
#622541 #8E355E #BA477C #CB749C #DBA0BB

Accessibility & contrast

On white

4.91
#BA477C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#BA477C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA477C
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA477C#FFFFFF#000000##FFFFFF
##BA477C1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#59637E
Deuteranopia (green-blind)
#787879
Tritanopia (blue-blind)
#C83F5C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba477c;
/* rgb */ color: rgb(186, 71, 124);
/* oklch */ color: oklch(56.8% 0.158 354.7);
Tailwind
colors: {
  custom: {
    50: '#d280a1',
    500: '#ba477c',
    950: '#000000',
  },
}
SCSS
$custom: #ba477c;
$custom-light: #d280a1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba477c",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 124
  },
  "hsl": {
    "h": 332.348,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.56805,
    "c": 0.15757,
    "h": 354.7
  },
  "luminance": 0.16401
}

Semantic roles & 50–950 ramp

primary
#BA477C
secondary
#95C8B0
accent
#D59953
background
#FDF8F9
surface
#FAEFF2
border
#D3CACC
text
#150B0F
muted
#837C7E

Preview Lab

Preview with #BA477C

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

Preview Lab → · Contrast checker → · Palette generator →

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