#BA417C#BA417C

#BA417C is a mid, vivid pink. Relative luminance 0.157; OKLCH L 56.1% C 0.166 H 353.6°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#BA417C
RGBrgb(186, 65, 124)
HSLhsl(331, 48%, 49%)
HSVhsv(331, 65%, 73%)
CMYKcmyk(0%, 65.1%, 33.3%, 27.1%)
CIE-LABlab(46.55, 54.05, -7.22)
CIE-LCHlch(46.55, 54.53, 352.39°)
OKLaboklab(56.1% 0.165 -0.0184)
OKLCHoklch(56.1% 0.166 353.6)
XYZxyz(25.7795, 15.6778, 20.7334)
Luminance0.1568 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA417C #41BA7F
analogous
#BA41B9 #BA417C #BA4341
triadic
#BA417C #7CBA41 #417CBA
tetradic
#BA417C #B9BA41 #41BA7F #4341BA
square
#BA417C #B9BA41 #41BA7F #4341BA
split-complementary
#BA417C #41BA43 #41B9BA
monochromatic
#5F2140 #8D315E #BA417C #CC6C9B #DC9ABA

Accessibility & contrast

On white

5.08
#BA417C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#BA417C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA417C
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA417C#FFFFFF#000000##FFFFFF
##BA417C1.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#54607E
Deuteranopia (green-blind)
#767679
Tritanopia (blue-blind)
#C83959
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba417c;
/* rgb */ color: rgb(186, 65, 124);
/* oklch */ color: oklch(56.1% 0.166 353.6);
Tailwind
colors: {
  custom: {
    50: '#d37da1',
    500: '#ba417c',
    950: '#000000',
  },
}
SCSS
$custom: #ba417c;
$custom-light: #d37da1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba417c",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 124
  },
  "hsl": {
    "h": 330.744,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.56101,
    "c": 0.16599,
    "h": 353.6
  },
  "luminance": 0.15675
}

Semantic roles & 50–950 ramp

primary
#BA417C
secondary
#8FC8AC
accent
#D89650
background
#FDF7F9
surface
#FAEEF2
border
#D3C9CC
text
#150A0F
muted
#837C7E

Preview Lab

Preview with #BA417C

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

Preview Lab → · Contrast checker → · Palette generator →

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