#BA407A#BA407A

#BA407A is a mid, vivid pink. Relative luminance 0.155; OKLCH L 55.9% C 0.166 H 354.5°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#BA407A
RGBrgb(186, 64, 122)
HSLhsl(331, 49%, 49%)
HSVhsv(331, 66%, 73%)
CMYKcmyk(0%, 65.6%, 34.4%, 27.1%)
CIE-LABlab(46.33, 54.23, -6.33)
CIE-LCHlch(46.33, 54.59, 353.34°)
OKLaboklab(55.92% 0.1657 -0.016)
OKLCHoklch(55.92% 0.166 354.5)
XYZxyz(25.5974, 15.5139, 20.0550)
Luminance0.1551 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA407A #40BA80
analogous
#BA40B7 #BA407A #BA4340
triadic
#BA407A #7ABA40 #407ABA
tetradic
#BA407A #B7BA40 #40BA80 #4340BA
square
#BA407A #B7BA40 #40BA80 #4340BA
split-complementary
#BA407A #40BA43 #40B7BA
monochromatic
#5F213E #8C305C #BA407A #CC6B99 #DC99B9

Accessibility & contrast

On white

5.12
#BA407A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#BA407A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA407A
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA407A#FFFFFF#000000##FFFFFF
##BA407A1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#54607C
Deuteranopia (green-blind)
#767677
Tritanopia (blue-blind)
#C83758
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba407a;
/* rgb */ color: rgb(186, 64, 122);
/* oklch */ color: oklch(55.9% 0.166 354.5);
Tailwind
colors: {
  custom: {
    50: '#d37da0',
    500: '#ba407a',
    950: '#000000',
  },
}
SCSS
$custom: #ba407a;
$custom-light: #d37da0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba407a",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 122
  },
  "hsl": {
    "h": 331.475,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.55918,
    "c": 0.16643,
    "h": 354.5
  },
  "luminance": 0.15511
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA407A

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

Preview Lab → · Contrast checker → · Palette generator →

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