#BA418F#BA418F

#BA418F is a mid, vivid pink. Relative luminance 0.162; OKLCH L 56.8% C 0.176 H 344.6°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#BA418F
RGBrgb(186, 65, 143)
HSLhsl(321, 48%, 49%)
HSVhsv(321, 65%, 73%)
CMYKcmyk(0%, 65.1%, 23.1%, 27.1%)
CIE-LABlab(47.24, 56.49, -17.66)
CIE-LCHlch(47.24, 59.18, 342.64°)
OKLaboklab(56.84% 0.17 -0.047)
OKLCHoklch(56.84% 0.176 344.6)
XYZxyz(27.0988, 16.2055, 27.6821)
Luminance0.1620 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA418F #41BA6C
analogous
#A941BA #BA418F #BA4153
triadic
#BA418F #8FBA41 #418FBA
tetradic
#BA418F #BAA941 #41BA6C #4153BA
square
#BA418F #BAA941 #41BA6C #4153BA
split-complementary
#BA418F #53BA41 #41BAA9
monochromatic
#5F2149 #8D316C #BA418F #CC6CAA #DC9AC4

Accessibility & contrast

On white

4.95
#BA418F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#BA418F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA418F
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA418F#FFFFFF#000000##FFFFFF
##BA418F1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D6391
Deuteranopia (green-blind)
#70778C
Tritanopia (blue-blind)
#C64062
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba418f;
/* rgb */ color: rgb(186, 65, 143);
/* oklch */ color: oklch(56.8% 0.176 344.6);
Tailwind
colors: {
  custom: {
    50: '#d27eb0',
    500: '#ba418f',
    950: '#000000',
  },
}
SCSS
$custom: #ba418f;
$custom-light: #d27eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba418f",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 143
  },
  "hsl": {
    "h": 321.322,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.5684,
    "c": 0.17636,
    "h": 344.6
  },
  "luminance": 0.16203
}

Semantic roles & 50–950 ramp

primary
#BA418F
secondary
#8FC8A3
accent
#D88050
background
#FDF8FA
surface
#FAEFF4
border
#D3CACE
text
#150A10
muted
#837C7F

Preview Lab

Preview with #BA418F

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

Preview Lab → · Contrast checker → · Palette generator →

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