#BA478B#BA478B

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

Color values

HEX#BA478B
RGBrgb(186, 71, 139)
HSLhsl(325, 45%, 50%)
HSVhsv(325, 62%, 73%)
CMYKcmyk(0%, 61.8%, 25.3%, 27.1%)
CIE-LABlab(48.02, 53.39, -14.07)
CIE-LCHlch(48.02, 55.21, 345.24°)
OKLaboklab(57.36% 0.1612 -0.0371)
OKLCHoklch(57.36% 0.165 347)
XYZxyz(27.1641, 16.8123, 26.2356)
Luminance0.1681 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA478B #47BA76
analogous
#B047BA #BA478B #BA4751
triadic
#BA478B #8BBA47 #478BBA
tetradic
#BA478B #BAB047 #47BA76 #4751BA
square
#BA478B #BAB047 #47BA76 #4751BA
split-complementary
#BA478B #51BA47 #47BAB0
monochromatic
#622549 #8E356A #BA478B #CB74A7 #DBA0C3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA478B#FFFFFF#000000##FFFFFF
##BA478B1.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#54658D
Deuteranopia (green-blind)
#747988
Tritanopia (blue-blind)
#C64463
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba478b;
/* rgb */ color: rgb(186, 71, 139);
/* oklch */ color: oklch(57.4% 0.165 347.0);
Tailwind
colors: {
  custom: {
    50: '#d281ad',
    500: '#ba478b',
    950: '#000000',
  },
}
SCSS
$custom: #ba478b;
$custom-light: #d281ad;
$custom-dark: #000000;
JSON
{
  "hex": "#ba478b",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 139
  },
  "hsl": {
    "h": 324.522,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.57364,
    "c": 0.16541,
    "h": 347
  },
  "luminance": 0.1681
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA478B

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

Preview Lab → · Contrast checker → · Palette generator →

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