#BA407D#BA407D

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

Color values

HEX#BA407D
RGBrgb(186, 64, 125)
HSLhsl(330, 49%, 49%)
HSVhsv(330, 66%, 73%)
CMYKcmyk(0%, 65.6%, 32.8%, 27.1%)
CIE-LABlab(46.43, 54.58, -8.00)
CIE-LCHlch(46.43, 55.17, 351.66°)
OKLaboklab(56.03% 0.1666 -0.0205)
OKLCHoklch(56.03% 0.168 353)
XYZxyz(25.7861, 15.5894, 21.0491)
Luminance0.1559 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA407D #40BA7D
analogous
#BA40BA #BA407D #BA4040
triadic
#BA407D #7DBA40 #407DBA
tetradic
#BA407D #BABA40 #40BA7D #4040BA
square
#BA407D #BABA40 #40BA7D #4040BA
split-complementary
#BA407D #40BA40 #40BABA
monochromatic
#5F2140 #8C305E #BA407D #CC6B9C #DC99BA

Accessibility & contrast

On white

5.10
#BA407D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#BA407D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA407D
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA407D#FFFFFF#000000##FFFFFF
##BA407D1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#53607F
Deuteranopia (green-blind)
#75767A
Tritanopia (blue-blind)
#C83859
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba407d;
/* rgb */ color: rgb(186, 64, 125);
/* oklch */ color: oklch(56.0% 0.168 353.0);
Tailwind
colors: {
  custom: {
    50: '#d37da2',
    500: '#ba407d',
    950: '#000000',
  },
}
SCSS
$custom: #ba407d;
$custom-light: #d37da2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba407d",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 125
  },
  "hsl": {
    "h": 330,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.56025,
    "c": 0.16782,
    "h": 353
  },
  "luminance": 0.15587
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA407D

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

Preview Lab → · Contrast checker → · Palette generator →

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