#BA418B#BA418B

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

Color values

HEX#BA418B
RGBrgb(186, 65, 139)
HSLhsl(323, 48%, 49%)
HSVhsv(323, 65%, 73%)
CMYKcmyk(0%, 65.1%, 25.3%, 27.1%)
CIE-LABlab(47.09, 55.95, -15.49)
CIE-LCHlch(47.09, 58.05, 344.52°)
OKLaboklab(56.68% 0.1691 -0.0409)
OKLCHoklch(56.68% 0.174 346.4)
XYZxyz(26.8012, 16.0865, 26.1146)
Luminance0.1608 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA418B #41BA70
analogous
#AD41BA #BA418B #BA414F
triadic
#BA418B #8BBA41 #418BBA
tetradic
#BA418B #BAAD41 #41BA70 #414FBA
square
#BA418B #BAAD41 #41BA70 #414FBA
split-complementary
#BA418B #4FBA41 #41BAAD
monochromatic
#5F2147 #8D3169 #BA418B #CC6CA7 #DC9AC2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA418B#FFFFFF#000000##FFFFFF
##BA418B1.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)
#4F628D
Deuteranopia (green-blind)
#727788
Tritanopia (blue-blind)
#C63E60
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba418b;
/* rgb */ color: rgb(186, 65, 139);
/* oklch */ color: oklch(56.7% 0.174 346.4);
Tailwind
colors: {
  custom: {
    50: '#d27dad',
    500: '#ba418b',
    950: '#000000',
  },
}
SCSS
$custom: #ba418b;
$custom-light: #d27dad;
$custom-dark: #000000;
JSON
{
  "hex": "#ba418b",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 139
  },
  "hsl": {
    "h": 323.306,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.56675,
    "c": 0.17394,
    "h": 346.4
  },
  "luminance": 0.16084
}

Semantic roles & 50–950 ramp

primary
#BA418B
secondary
#8FC8A5
accent
#D88550
background
#FDF8FA
surface
#FAEFF4
border
#D3CACE
text
#150A10
muted
#837C7F

Preview Lab

Preview with #BA418B

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

Preview Lab → · Contrast checker → · Palette generator →

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