#BA408A#BA408A

#BA408A is a mid, vivid pink. Relative luminance 0.159; OKLCH L 56.5% C 0.175 H 346.7°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#BA408A
RGBrgb(186, 64, 138)
HSLhsl(324, 49%, 49%)
HSVhsv(324, 66%, 73%)
CMYKcmyk(0%, 65.6%, 25.8%, 27.1%)
CIE-LABlab(46.90, 56.22, -15.17)
CIE-LCHlch(46.90, 58.23, 344.90°)
OKLaboklab(56.53% 0.1701 -0.0401)
OKLCHoklch(56.53% 0.175 346.7)
XYZxyz(26.6716, 15.9436, 25.7126)
Luminance0.1594 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA408A #40BA70
analogous
#AD40BA #BA408A #BA404D
triadic
#BA408A #8ABA40 #408ABA
tetradic
#BA408A #BAAD40 #40BA70 #404DBA
square
#BA408A #BAAD40 #40BA70 #404DBA
split-complementary
#BA408A #4DBA40 #40BAAD
monochromatic
#5F2146 #8C3068 #BA408A #CC6BA6 #DC99C1

Accessibility & contrast

On white

5.01
#BA408A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#BA408A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA408A
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA408A#FFFFFF#000000##FFFFFF
##BA408A1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E628C
Deuteranopia (green-blind)
#717787
Tritanopia (blue-blind)
#C63D5F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba408a;
/* rgb */ color: rgb(186, 64, 138);
/* oklch */ color: oklch(56.5% 0.175 346.7);
Tailwind
colors: {
  custom: {
    50: '#d27dac',
    500: '#ba408a',
    950: '#000000',
  },
}
SCSS
$custom: #ba408a;
$custom-light: #d27dac;
$custom-dark: #000000;
JSON
{
  "hex": "#ba408a",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 138
  },
  "hsl": {
    "h": 323.607,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.56525,
    "c": 0.17472,
    "h": 346.7
  },
  "luminance": 0.15941
}

Semantic roles & 50–950 ramp

primary
#BA408A
secondary
#8EC8A5
accent
#D8854F
background
#FDF8FA
surface
#FAEFF4
border
#D3CACE
text
#150A10
muted
#837C7F

Preview Lab

Preview with #BA408A

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

Preview Lab → · Contrast checker → · Palette generator →

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