#BA477B#BA477B

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

Color values

HEX#BA477B
RGBrgb(186, 71, 123)
HSLhsl(333, 45%, 50%)
HSVhsv(333, 62%, 73%)
CMYKcmyk(0%, 61.8%, 33.9%, 27.1%)
CIE-LABlab(47.47, 51.34, -5.25)
CIE-LCHlch(47.47, 51.61, 354.17°)
OKLaboklab(56.77% 0.1566 -0.0132)
OKLCHoklch(56.77% 0.157 355.2)
XYZxyz(26.0795, 16.3784, 20.5230)
Luminance0.1638 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA477B #47BA86
analogous
#BA47B4 #BA477B #BA4C47
triadic
#BA477B #7BBA47 #477BBA
tetradic
#BA477B #B4BA47 #47BA86 #4C47BA
square
#BA477B #B4BA47 #47BA86 #4C47BA
split-complementary
#BA477B #47BA4C #47B4BA
monochromatic
#622540 #8E355E #BA477B #CB749B #DBA0BB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA477B#FFFFFF#000000##FFFFFF
##BA477B1.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)
#59637D
Deuteranopia (green-blind)
#787878
Tritanopia (blue-blind)
#C83F5C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba477b;
/* rgb */ color: rgb(186, 71, 123);
/* oklch */ color: oklch(56.8% 0.157 355.2);
Tailwind
colors: {
  custom: {
    50: '#d280a1',
    500: '#ba477b',
    950: '#000000',
  },
}
SCSS
$custom: #ba477b;
$custom-light: #d280a1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba477b",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 123
  },
  "hsl": {
    "h": 332.87,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5677,
    "c": 0.15713,
    "h": 355.2
  },
  "luminance": 0.16376
}

Semantic roles & 50–950 ramp

primary
#BA477B
secondary
#95C8B1
accent
#D59A53
background
#FDF8F9
surface
#FAEFF2
border
#D3CACC
text
#150B0E
muted
#837C7E

Preview Lab

Preview with #BA477B

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

Preview Lab → · Contrast checker → · Palette generator →

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