#BA407B#BA407B

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

Color values

HEX#BA407B
RGBrgb(186, 64, 123)
HSLhsl(331, 49%, 49%)
HSVhsv(331, 66%, 73%)
CMYKcmyk(0%, 65.6%, 33.9%, 27.1%)
CIE-LABlab(46.36, 54.34, -6.89)
CIE-LCHlch(46.36, 54.78, 352.78°)
OKLaboklab(55.95% 0.166 -0.0175)
OKLCHoklch(55.95% 0.167 354)
XYZxyz(25.6597, 15.5388, 20.3830)
Luminance0.1554 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA407B #40BA7F
analogous
#BA40B8 #BA407B #BA4240
triadic
#BA407B #7BBA40 #407BBA
tetradic
#BA407B #B8BA40 #40BA7F #4240BA
square
#BA407B #B8BA40 #40BA7F #4240BA
split-complementary
#BA407B #40BA42 #40B8BA
monochromatic
#5F213F #8C305D #BA407B #CC6B9A #DC99B9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA407B#FFFFFF#000000##FFFFFF
##BA407B1.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)
#54607D
Deuteranopia (green-blind)
#757678
Tritanopia (blue-blind)
#C83758
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba407b;
/* rgb */ color: rgb(186, 64, 123);
/* oklch */ color: oklch(56.0% 0.167 354.0);
Tailwind
colors: {
  custom: {
    50: '#d37da1',
    500: '#ba407b',
    950: '#000000',
  },
}
SCSS
$custom: #ba407b;
$custom-light: #d37da1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba407b",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 123
  },
  "hsl": {
    "h": 330.984,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.55953,
    "c": 0.16688,
    "h": 354
  },
  "luminance": 0.15536
}

Semantic roles & 50–950 ramp

primary
#BA407B
secondary
#8EC8AC
accent
#D8964F
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#150A0E
muted
#837C7E

Preview Lab

Preview with #BA407B

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

Preview Lab → · Contrast checker → · Palette generator →

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