#BA407C#BA407C

#BA407C is a mid, vivid pink. Relative luminance 0.156; OKLCH L 56.0% C 0.167 H 353.5°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#BA407C
RGBrgb(186, 64, 124)
HSLhsl(330, 49%, 49%)
HSVhsv(330, 66%, 73%)
CMYKcmyk(0%, 65.6%, 33.3%, 27.1%)
CIE-LABlab(46.40, 54.46, -7.45)
CIE-LCHlch(46.40, 54.97, 352.22°)
OKLaboklab(55.99% 0.1663 -0.019)
OKLCHoklch(55.99% 0.167 353.5)
XYZxyz(25.7226, 15.5640, 20.7144)
Luminance0.1556 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA407C #40BA7E
analogous
#BA40B9 #BA407C #BA4140
triadic
#BA407C #7CBA40 #407CBA
tetradic
#BA407C #B9BA40 #40BA7E #4140BA
square
#BA407C #B9BA40 #40BA7E #4140BA
split-complementary
#BA407C #40BA41 #40B9BA
monochromatic
#5F213F #8C305E #BA407C #CC6B9B #DC99BA

Accessibility & contrast

On white

5.11
#BA407C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#BA407C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA407C
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA407C#FFFFFF#000000##FFFFFF
##BA407C1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#53607E
Deuteranopia (green-blind)
#757679
Tritanopia (blue-blind)
#C83859
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba407c;
/* rgb */ color: rgb(186, 64, 124);
/* oklch */ color: oklch(56.0% 0.167 353.5);
Tailwind
colors: {
  custom: {
    50: '#d37da1',
    500: '#ba407c',
    950: '#000000',
  },
}
SCSS
$custom: #ba407c;
$custom-light: #d37da1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba407c",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 124
  },
  "hsl": {
    "h": 330.492,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.55989,
    "c": 0.16734,
    "h": 353.5
  },
  "luminance": 0.15561
}

Semantic roles & 50–950 ramp

primary
#BA407C
secondary
#8EC8AB
accent
#D8954F
background
#FDF7F9
surface
#FAEEF2
border
#D3C9CC
text
#150A0F
muted
#837C7E

Preview Lab

Preview with #BA407C

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

Preview Lab → · Contrast checker → · Palette generator →

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