#BA408C#BA408C

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

Color values

HEX#BA408C
RGBrgb(186, 64, 140)
HSLhsl(323, 49%, 49%)
HSVhsv(323, 66%, 73%)
CMYKcmyk(0%, 65.6%, 24.7%, 27.1%)
CIE-LABlab(46.98, 56.49, -16.26)
CIE-LCHlch(46.98, 58.78, 343.94°)
OKLaboklab(56.61% 0.1706 -0.0431)
OKLCHoklch(56.61% 0.176 345.8)
XYZxyz(26.8177, 16.0020, 26.4822)
Luminance0.1600 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA408C #40BA6E
analogous
#AB40BA #BA408C #BA404F
triadic
#BA408C #8CBA40 #408CBA
tetradic
#BA408C #BAAB40 #40BA6E #404FBA
square
#BA408C #BAAB40 #40BA6E #404FBA
split-complementary
#BA408C #4FBA40 #40BAAB
monochromatic
#5F2147 #8C306A #BA408C #CC6BA8 #DC99C2

Accessibility & contrast

On white

5.00
#BA408C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#BA408C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA408C
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA408C#FFFFFF#000000##FFFFFF
##BA408C1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D628E
Deuteranopia (green-blind)
#717789
Tritanopia (blue-blind)
#C63E60
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba408c;
/* rgb */ color: rgb(186, 64, 140);
/* oklch */ color: oklch(56.6% 0.176 345.8);
Tailwind
colors: {
  custom: {
    50: '#d27dad',
    500: '#ba408c',
    950: '#000000',
  },
}
SCSS
$custom: #ba408c;
$custom-light: #d27dad;
$custom-dark: #000000;
JSON
{
  "hex": "#ba408c",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 140
  },
  "hsl": {
    "h": 322.623,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.56607,
    "c": 0.1759,
    "h": 345.8
  },
  "luminance": 0.15999
}

Semantic roles & 50–950 ramp

primary
#BA408C
secondary
#8EC8A4
accent
#D8834F
background
#FDF8FA
surface
#FAEFF4
border
#D3CACE
text
#150A10
muted
#837C7F

Preview Lab

Preview with #BA408C

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

Preview Lab → · Contrast checker → · Palette generator →

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