#BA41A1#BA41A1

#BA41A1 is a mid, vivid pink. Relative luminance 0.168; OKLCH L 57.6% C 0.188 H 336.9°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#BA41A1
RGBrgb(186, 65, 161)
HSLhsl(312, 48%, 49%)
HSVhsv(312, 65%, 73%)
CMYKcmyk(0%, 65.1%, 13.4%, 27.1%)
CIE-LABlab(48.00, 59.08, -27.24)
CIE-LCHlch(48.00, 65.06, 335.25°)
OKLaboklab(57.64% 0.1734 -0.0739)
OKLCHoklch(57.64% 0.188 336.9)
XYZxyz(28.5734, 16.7953, 35.4482)
Luminance0.1679 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA41A1 #41BA5A
analogous
#9741BA #BA41A1 #BA4165
triadic
#BA41A1 #A1BA41 #41A1BA
tetradic
#BA41A1 #BA9741 #41BA5A #4165BA
square
#BA41A1 #BA9741 #41BA5A #4165BA
split-complementary
#BA41A1 #65BA41 #41BA97
monochromatic
#5F2152 #8D317A #BA41A1 #CC6CB8 #DC9ACE

Accessibility & contrast

On white

4.82
#BA41A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#BA41A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA41A1
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA41A1#FFFFFF#000000##FFFFFF
##BA41A11.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4466A4
Deuteranopia (green-blind)
#6A799E
Tritanopia (blue-blind)
#C3476B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba41a1;
/* rgb */ color: rgb(186, 65, 161);
/* oklch */ color: oklch(57.6% 0.188 336.9);
Tailwind
colors: {
  custom: {
    50: '#d27ebd',
    500: '#ba41a1',
    950: '#000000',
  },
}
SCSS
$custom: #ba41a1;
$custom-light: #d27ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba41a1",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 161
  },
  "hsl": {
    "h": 312.397,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.57643,
    "c": 0.18849,
    "h": 336.9
  },
  "luminance": 0.16793
}

Semantic roles & 50–950 ramp

primary
#BA41A1
secondary
#8FC89B
accent
#D86C50
background
#FDF8FB
surface
#FAEFF6
border
#D3CAD0
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA41A1

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

Preview Lab → · Contrast checker → · Palette generator →

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