#BA408F#BA408F

#BA408F is a mid, vivid pink. Relative luminance 0.161; OKLCH L 56.7% C 0.178 H 344.5°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#BA408F
RGBrgb(186, 64, 143)
HSLhsl(321, 49%, 49%)
HSVhsv(321, 66%, 73%)
CMYKcmyk(0%, 65.6%, 23.1%, 27.1%)
CIE-LABlab(47.09, 56.89, -17.89)
CIE-LCHlch(47.09, 59.64, 342.55°)
OKLaboklab(56.73% 0.1712 -0.0476)
OKLCHoklch(56.73% 0.178 344.5)
XYZxyz(27.0420, 16.0917, 27.6631)
Luminance0.1609 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA408F #40BA6B
analogous
#A840BA #BA408F #BA4052
triadic
#BA408F #8FBA40 #408FBA
tetradic
#BA408F #BAA840 #40BA6B #4052BA
square
#BA408F #BAA840 #40BA6B #4052BA
split-complementary
#BA408F #52BA40 #40BAA8
monochromatic
#5F2149 #8C306C #BA408F #CC6BAA #DC99C4

Accessibility & contrast

On white

4.98
#BA408F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#BA408F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA408F
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA408F#FFFFFF#000000##FFFFFF
##BA408F1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C6391
Deuteranopia (green-blind)
#70778C
Tritanopia (blue-blind)
#C63F62
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba408f;
/* rgb */ color: rgb(186, 64, 143);
/* oklch */ color: oklch(56.7% 0.178 344.5);
Tailwind
colors: {
  custom: {
    50: '#d27db0',
    500: '#ba408f',
    950: '#000000',
  },
}
SCSS
$custom: #ba408f;
$custom-light: #d27db0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba408f",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 143
  },
  "hsl": {
    "h": 321.148,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.56731,
    "c": 0.17773,
    "h": 344.5
  },
  "luminance": 0.16089
}

Semantic roles & 50–950 ramp

primary
#BA408F
secondary
#8EC8A2
accent
#D8804F
background
#FDF8FA
surface
#FAEFF4
border
#D3CACE
text
#150A10
muted
#837C7F

Preview Lab

Preview with #BA408F

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

Preview Lab → · Contrast checker → · Palette generator →

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