#BA408E#BA408E

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

Color values

HEX#BA408E
RGBrgb(186, 64, 142)
HSLhsl(322, 49%, 49%)
HSVhsv(322, 66%, 73%)
CMYKcmyk(0%, 65.6%, 23.7%, 27.1%)
CIE-LABlab(47.06, 56.76, -17.35)
CIE-LCHlch(47.06, 59.35, 343.01°)
OKLaboklab(56.69% 0.171 -0.0461)
OKLCHoklch(56.69% 0.177 344.9)
XYZxyz(26.9665, 16.0615, 27.2659)
Luminance0.1606 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA408E #40BA6C
analogous
#A940BA #BA408E #BA4051
triadic
#BA408E #8EBA40 #408EBA
tetradic
#BA408E #BAA940 #40BA6C #4051BA
square
#BA408E #BAA940 #40BA6C #4051BA
split-complementary
#BA408E #51BA40 #40BAA9
monochromatic
#5F2148 #8C306B #BA408E #CC6BA9 #DC99C4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA408E#FFFFFF#000000##FFFFFF
##BA408E1.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)
#4D6290
Deuteranopia (green-blind)
#70778B
Tritanopia (blue-blind)
#C63F61
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba408e;
/* rgb */ color: rgb(186, 64, 142);
/* oklch */ color: oklch(56.7% 0.177 344.9);
Tailwind
colors: {
  custom: {
    50: '#d27daf',
    500: '#ba408e',
    950: '#000000',
  },
}
SCSS
$custom: #ba408e;
$custom-light: #d27daf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba408e",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 142
  },
  "hsl": {
    "h": 321.639,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.56689,
    "c": 0.17711,
    "h": 344.9
  },
  "luminance": 0.16059
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA408E

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

Preview Lab → · Contrast checker → · Palette generator →

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