#BA417D#BA417D

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

Color values

HEX#BA417D
RGBrgb(186, 65, 125)
HSLhsl(330, 48%, 49%)
HSVhsv(330, 65%, 73%)
CMYKcmyk(0%, 65.1%, 32.8%, 27.1%)
CIE-LABlab(46.58, 54.17, -7.78)
CIE-LCHlch(46.58, 54.72, 351.83°)
OKLaboklab(56.14% 0.1653 -0.0199)
OKLCHoklch(56.14% 0.166 353.1)
XYZxyz(25.8430, 15.7032, 21.0681)
Luminance0.1570 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA417D #41BA7E
analogous
#BA41BA #BA417D #BA4241
triadic
#BA417D #7DBA41 #417DBA
tetradic
#BA417D #BABA41 #41BA7E #4241BA
square
#BA417D #BABA41 #41BA7E #4241BA
split-complementary
#BA417D #41BA42 #41BABA
monochromatic
#5F2140 #8D315F #BA417D #CC6C9C #DC9ABA

Accessibility & contrast

On white

5.07
#BA417D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA417D
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA417D#FFFFFF#000000##FFFFFF
##BA417D1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#54607F
Deuteranopia (green-blind)
#75767A
Tritanopia (blue-blind)
#C8395A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba417d;
/* rgb */ color: rgb(186, 65, 125);
/* oklch */ color: oklch(56.1% 0.166 353.1);
Tailwind
colors: {
  custom: {
    50: '#d37da2',
    500: '#ba417d',
    950: '#000000',
  },
}
SCSS
$custom: #ba417d;
$custom-light: #d37da2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba417d",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 125
  },
  "hsl": {
    "h": 330.248,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.56137,
    "c": 0.16646,
    "h": 353.1
  },
  "luminance": 0.157
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA417D

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

Preview Lab → · Contrast checker → · Palette generator →

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