#BA478E#BA478E

#BA478E is a mid, vivid pink. Relative luminance 0.169; OKLCH L 57.5% C 0.167 H 345.6°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#BA478E
RGBrgb(186, 71, 142)
HSLhsl(323, 45%, 50%)
HSVhsv(323, 62%, 73%)
CMYKcmyk(0%, 61.8%, 23.7%, 27.1%)
CIE-LABlab(48.14, 53.80, -15.70)
CIE-LCHlch(48.14, 56.04, 343.73°)
OKLaboklab(57.48% 0.162 -0.0416)
OKLCHoklch(57.48% 0.167 345.6)
XYZxyz(27.3864, 16.9012, 27.4059)
Luminance0.1690 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA478E #47BA73
analogous
#AD47BA #BA478E #BA4754
triadic
#BA478E #8EBA47 #478EBA
tetradic
#BA478E #BAAD47 #47BA73 #4754BA
square
#BA478E #BAAD47 #47BA73 #4754BA
split-complementary
#BA478E #54BA47 #47BAAD
monochromatic
#62254A #8E356C #BA478E #CB74A9 #DBA0C5

Accessibility & contrast

On white

4.79
#BA478E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#BA478E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA478E
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA478E#FFFFFF#000000##FFFFFF
##BA478E1.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#536690
Deuteranopia (green-blind)
#73798B
Tritanopia (blue-blind)
#C64564
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba478e;
/* rgb */ color: rgb(186, 71, 142);
/* oklch */ color: oklch(57.5% 0.167 345.6);
Tailwind
colors: {
  custom: {
    50: '#d281af',
    500: '#ba478e',
    950: '#000000',
  },
}
SCSS
$custom: #ba478e;
$custom-light: #d281af;
$custom-dark: #000000;
JSON
{
  "hex": "#ba478e",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 142
  },
  "hsl": {
    "h": 322.957,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.57484,
    "c": 0.16721,
    "h": 345.6
  },
  "luminance": 0.16899
}

Semantic roles & 50–950 ramp

primary
#BA478E
secondary
#95C8A8
accent
#D58553
background
#FDF8FA
surface
#FAEFF4
border
#D3CACE
text
#140B10
muted
#837C7F

Preview Lab

Preview with #BA478E

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

Preview Lab → · Contrast checker → · Palette generator →

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