#BA407F#BA407F

#BA407F is a mid, vivid pink. Relative luminance 0.156; OKLCH L 56.1% C 0.169 H 352.0°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#BA407F
RGBrgb(186, 64, 127)
HSLhsl(329, 49%, 49%)
HSVhsv(329, 66%, 73%)
CMYKcmyk(0%, 65.6%, 31.7%, 27.1%)
CIE-LABlab(46.50, 54.83, -9.12)
CIE-LCHlch(46.50, 55.58, 350.56°)
OKLaboklab(56.1% 0.1671 -0.0235)
OKLCHoklch(56.1% 0.169 352)
XYZxyz(25.9152, 15.6410, 21.7288)
Luminance0.1564 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA407F #40BA7B
analogous
#B840BA #BA407F #BA4042
triadic
#BA407F #7FBA40 #407FBA
tetradic
#BA407F #BAB840 #40BA7B #4042BA
square
#BA407F #BAB840 #40BA7B #4042BA
split-complementary
#BA407F #42BA40 #40BAB8
monochromatic
#5F2141 #8C3060 #BA407F #CC6B9D #DC99BB

Accessibility & contrast

On white

5.09
#BA407F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#BA407F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA407F
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA407F#FFFFFF#000000##FFFFFF
##BA407F1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#526081
Deuteranopia (green-blind)
#74767C
Tritanopia (blue-blind)
#C8395A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba407f;
/* rgb */ color: rgb(186, 64, 127);
/* oklch */ color: oklch(56.1% 0.169 352.0);
Tailwind
colors: {
  custom: {
    50: '#d37da4',
    500: '#ba407f',
    950: '#000000',
  },
}
SCSS
$custom: #ba407f;
$custom-light: #d37da4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba407f",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 127
  },
  "hsl": {
    "h": 329.016,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.56099,
    "c": 0.16879,
    "h": 352
  },
  "luminance": 0.15638
}

Semantic roles & 50–950 ramp

primary
#BA407F
secondary
#8EC8AA
accent
#D8924F
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#150A0F
muted
#837C7F

Preview Lab

Preview with #BA407F

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

Preview Lab → · Contrast checker → · Palette generator →

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