#BA417F#BA417F

#BA417F is a mid, vivid pink. Relative luminance 0.158; OKLCH L 56.2% C 0.167 H 352.1°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#BA417F
RGBrgb(186, 65, 127)
HSLhsl(329, 48%, 49%)
HSVhsv(329, 65%, 73%)
CMYKcmyk(0%, 65.1%, 31.7%, 27.1%)
CIE-LABlab(46.65, 54.41, -8.89)
CIE-LCHlch(46.65, 55.13, 350.72°)
OKLaboklab(56.21% 0.1659 -0.0229)
OKLCHoklch(56.21% 0.167 352.1)
XYZxyz(25.9721, 15.7548, 21.7478)
Luminance0.1575 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA417F #41BA7C
analogous
#B941BA #BA417F #BA4143
triadic
#BA417F #7FBA41 #417FBA
tetradic
#BA417F #BAB941 #41BA7C #4143BA
square
#BA417F #BAB941 #41BA7C #4143BA
split-complementary
#BA417F #43BA41 #41BAB9
monochromatic
#5F2141 #8D3160 #BA417F #CC6C9D #DC9ABC

Accessibility & contrast

On white

5.06
#BA417F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#BA417F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA417F
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA417F#FFFFFF#000000##FFFFFF
##BA417F1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#536181
Deuteranopia (green-blind)
#75777C
Tritanopia (blue-blind)
#C83A5A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba417f;
/* rgb */ color: rgb(186, 65, 127);
/* oklch */ color: oklch(56.2% 0.167 352.1);
Tailwind
colors: {
  custom: {
    50: '#d37da4',
    500: '#ba417f',
    950: '#000000',
  },
}
SCSS
$custom: #ba417f;
$custom-light: #d37da4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba417f",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 127
  },
  "hsl": {
    "h": 329.256,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.5621,
    "c": 0.16742,
    "h": 352.1
  },
  "luminance": 0.15752
}

Semantic roles & 50–950 ramp

primary
#BA417F
secondary
#8FC8AB
accent
#D89250
background
#FDF8FA
surface
#FAEFF4
border
#D3CACE
text
#150A0F
muted
#837C7F

Preview Lab

Preview with #BA417F

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

Preview Lab → · Contrast checker → · Palette generator →

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