#BA417B#BA417B

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

Color values

HEX#BA417B
RGBrgb(186, 65, 123)
HSLhsl(331, 48%, 49%)
HSVhsv(331, 65%, 73%)
CMYKcmyk(0%, 65.1%, 33.9%, 27.1%)
CIE-LABlab(46.52, 53.93, -6.66)
CIE-LCHlch(46.52, 54.34, 352.96°)
OKLaboklab(56.07% 0.1647 -0.0169)
OKLCHoklch(56.07% 0.166 354.1)
XYZxyz(25.7166, 15.6526, 20.4020)
Luminance0.1565 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA417B #41BA80
analogous
#BA41B8 #BA417B #BA4441
triadic
#BA417B #7BBA41 #417BBA
tetradic
#BA417B #B8BA41 #41BA80 #4441BA
square
#BA417B #B8BA41 #41BA80 #4441BA
split-complementary
#BA417B #41BA44 #41B8BA
monochromatic
#5F213F #8D315D #BA417B #CC6C9A #DC9AB9

Accessibility & contrast

On white

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

On black

4.13
#BA417B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##BA417B#FFFFFF#000000##FFFFFF
##BA417B1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#55607D
Deuteranopia (green-blind)
#767678
Tritanopia (blue-blind)
#C83859
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba417b;
/* rgb */ color: rgb(186, 65, 123);
/* oklch */ color: oklch(56.1% 0.166 354.1);
Tailwind
colors: {
  custom: {
    50: '#d37da1',
    500: '#ba417b',
    950: '#000000',
  },
}
SCSS
$custom: #ba417b;
$custom-light: #d37da1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba417b",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 123
  },
  "hsl": {
    "h": 331.24,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.56066,
    "c": 0.16553,
    "h": 354.1
  },
  "luminance": 0.1565
}

Semantic roles & 50–950 ramp

primary
#BA417B
secondary
#8FC8AD
accent
#D89750
background
#FDF7F9
surface
#FAEEF2
border
#D3C9CC
text
#150A0E
muted
#837C7E

Preview Lab

Preview with #BA417B

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

Preview Lab → · Contrast checker → · Palette generator →

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