#BA407E#BA407E

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

Color values

HEX#BA407E
RGBrgb(186, 64, 126)
HSLhsl(330, 49%, 49%)
HSVhsv(330, 66%, 73%)
CMYKcmyk(0%, 65.6%, 32.3%, 27.1%)
CIE-LABlab(46.47, 54.70, -8.56)
CIE-LCHlch(46.47, 55.37, 351.11°)
OKLaboklab(56.06% 0.1669 -0.022)
OKLCHoklch(56.06% 0.168 352.5)
XYZxyz(25.8503, 15.6151, 21.3873)
Luminance0.1561 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA407E #40BA7C
analogous
#B940BA #BA407E #BA4041
triadic
#BA407E #7EBA40 #407EBA
tetradic
#BA407E #BAB940 #40BA7C #4041BA
square
#BA407E #BAB940 #40BA7C #4041BA
split-complementary
#BA407E #41BA40 #40BAB9
monochromatic
#5F2140 #8C305F #BA407E #CC6B9C #DC99BB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA407E#FFFFFF#000000##FFFFFF
##BA407E1.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#536080
Deuteranopia (green-blind)
#75767B
Tritanopia (blue-blind)
#C8385A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba407e;
/* rgb */ color: rgb(186, 64, 126);
/* oklch */ color: oklch(56.1% 0.168 352.5);
Tailwind
colors: {
  custom: {
    50: '#d37da3',
    500: '#ba407e',
    950: '#000000',
  },
}
SCSS
$custom: #ba407e;
$custom-light: #d37da3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba407e",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 126
  },
  "hsl": {
    "h": 329.508,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.56062,
    "c": 0.1683,
    "h": 352.5
  },
  "luminance": 0.15612
}

Semantic roles & 50–950 ramp

primary
#BA407E
secondary
#8EC8AA
accent
#D8934F
background
#FDF7FA
surface
#FAEEF3
border
#D3C9CD
text
#150A0F
muted
#837C7F

Preview Lab

Preview with #BA407E

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

Preview Lab → · Contrast checker → · Palette generator →

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