#BA417E#BA417E

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

Color values

HEX#BA417E
RGBrgb(186, 65, 126)
HSLhsl(330, 48%, 49%)
HSVhsv(330, 65%, 73%)
CMYKcmyk(0%, 65.1%, 32.3%, 27.1%)
CIE-LABlab(46.62, 54.29, -8.33)
CIE-LCHlch(46.62, 54.92, 351.27°)
OKLaboklab(56.17% 0.1656 -0.0214)
OKLCHoklch(56.17% 0.167 352.6)
XYZxyz(25.9072, 15.7289, 21.4062)
Luminance0.1573 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA417E #41BA7D
analogous
#BA41BA #BA417E #BA4142
triadic
#BA417E #7EBA41 #417EBA
tetradic
#BA417E #BABA41 #41BA7D #4142BA
square
#BA417E #BABA41 #41BA7D #4142BA
split-complementary
#BA417E #42BA41 #41BABA
monochromatic
#5F2141 #8D315F #BA417E #CC6C9C #DC9ABB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA417E#FFFFFF#000000##FFFFFF
##BA417E1.005.074.155.07
#FFFFFF5.071.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#546180
Deuteranopia (green-blind)
#75777B
Tritanopia (blue-blind)
#C8395A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba417e;
/* rgb */ color: rgb(186, 65, 126);
/* oklch */ color: oklch(56.2% 0.167 352.6);
Tailwind
colors: {
  custom: {
    50: '#d37da3',
    500: '#ba417e',
    950: '#000000',
  },
}
SCSS
$custom: #ba417e;
$custom-light: #d37da3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba417e",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 126
  },
  "hsl": {
    "h": 329.752,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.56174,
    "c": 0.16694,
    "h": 352.6
  },
  "luminance": 0.15726
}

Semantic roles & 50–950 ramp

primary
#BA417E
secondary
#8FC8AB
accent
#D89350
background
#FDF7FA
surface
#FAEEF3
border
#D3C9CD
text
#150A0F
muted
#837C7F

Preview Lab

Preview with #BA417E

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

Preview Lab → · Contrast checker → · Palette generator →

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