#BA417A#BA417A

#BA417A is a mid, vivid pink. Relative luminance 0.156; OKLCH L 56.0% C 0.165 H 354.6°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#BA417A
RGBrgb(186, 65, 122)
HSLhsl(332, 48%, 49%)
HSVhsv(332, 65%, 73%)
CMYKcmyk(0%, 65.1%, 34.4%, 27.1%)
CIE-LABlab(46.48, 53.81, -6.10)
CIE-LCHlch(46.48, 54.15, 353.53°)
OKLaboklab(56.03% 0.1644 -0.0154)
OKLCHoklch(56.03% 0.165 354.6)
XYZxyz(25.6543, 15.6277, 20.0740)
Luminance0.1563 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA417A #41BA81
analogous
#BA41B7 #BA417A #BA4541
triadic
#BA417A #7ABA41 #417ABA
tetradic
#BA417A #B7BA41 #41BA81 #4541BA
square
#BA417A #B7BA41 #41BA81 #4541BA
split-complementary
#BA417A #41BA45 #41B7BA
monochromatic
#5F213F #8D315C #BA417A #CC6C99 #DC9AB9

Accessibility & contrast

On white

5.09
#BA417A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#BA417A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA417A
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA417A#FFFFFF#000000##FFFFFF
##BA417A1.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#55607C
Deuteranopia (green-blind)
#767677
Tritanopia (blue-blind)
#C83858
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba417a;
/* rgb */ color: rgb(186, 65, 122);
/* oklch */ color: oklch(56.0% 0.165 354.6);
Tailwind
colors: {
  custom: {
    50: '#d37da0',
    500: '#ba417a',
    950: '#000000',
  },
}
SCSS
$custom: #ba417a;
$custom-light: #d37da0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba417a",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 122
  },
  "hsl": {
    "h": 331.736,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.5603,
    "c": 0.16508,
    "h": 354.6
  },
  "luminance": 0.15625
}

Semantic roles & 50–950 ramp

primary
#BA417A
secondary
#8FC8AD
accent
#D89850
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#150A0E
muted
#837C7E

Preview Lab

Preview with #BA417A

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

Preview Lab → · Contrast checker → · Palette generator →

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