#BA408D#BA408D

#BA408D is a mid, vivid pink. Relative luminance 0.160; OKLCH L 56.6% C 0.176 H 345.4°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#BA408D
RGBrgb(186, 64, 141)
HSLhsl(322, 49%, 49%)
HSVhsv(322, 66%, 73%)
CMYKcmyk(0%, 65.6%, 24.2%, 27.1%)
CIE-LABlab(47.02, 56.62, -16.80)
CIE-LCHlch(47.02, 59.06, 343.47°)
OKLaboklab(56.65% 0.1708 -0.0446)
OKLCHoklch(56.65% 0.177 345.4)
XYZxyz(26.8918, 16.0317, 26.8723)
Luminance0.1603 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA408D #40BA6D
analogous
#AA40BA #BA408D #BA4050
triadic
#BA408D #8DBA40 #408DBA
tetradic
#BA408D #BAAA40 #40BA6D #4050BA
square
#BA408D #BAAA40 #40BA6D #4050BA
split-complementary
#BA408D #50BA40 #40BAAA
monochromatic
#5F2148 #8C306A #BA408D #CC6BA8 #DC99C3

Accessibility & contrast

On white

4.99
#BA408D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#BA408D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA408D
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA408D#FFFFFF#000000##FFFFFF
##BA408D1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D628F
Deuteranopia (green-blind)
#71778A
Tritanopia (blue-blind)
#C63E61
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba408d;
/* rgb */ color: rgb(186, 64, 141);
/* oklch */ color: oklch(56.6% 0.176 345.4);
Tailwind
colors: {
  custom: {
    50: '#d27dae',
    500: '#ba408d',
    950: '#000000',
  },
}
SCSS
$custom: #ba408d;
$custom-light: #d27dae;
$custom-dark: #000000;
JSON
{
  "hex": "#ba408d",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 141
  },
  "hsl": {
    "h": 322.131,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.56648,
    "c": 0.1765,
    "h": 345.4
  },
  "luminance": 0.16029
}

Semantic roles & 50–950 ramp

primary
#BA408D
secondary
#8EC8A3
accent
#D8824F
background
#FDF8FA
surface
#FAEFF4
border
#D3CACE
text
#150A10
muted
#837C7F

Preview Lab

Preview with #BA408D

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

Preview Lab → · Contrast checker → · Palette generator →

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