#BA41A2#BA41A2

#BA41A2 is a mid, vivid pink. Relative luminance 0.168; OKLCH L 57.7% C 0.189 H 336.5°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#BA41A2
RGBrgb(186, 65, 162)
HSLhsl(312, 48%, 49%)
HSVhsv(312, 65%, 73%)
CMYKcmyk(0%, 65.1%, 12.9%, 27.1%)
CIE-LABlab(48.05, 59.23, -27.76)
CIE-LCHlch(48.05, 65.42, 334.89°)
OKLaboklab(57.69% 0.1735 -0.0754)
OKLCHoklch(57.69% 0.189 336.5)
XYZxyz(28.6620, 16.8308, 35.9145)
Luminance0.1683 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA41A2 #41BA59
analogous
#9641BA #BA41A2 #BA4166
triadic
#BA41A2 #A2BA41 #41A2BA
tetradic
#BA41A2 #BA9641 #41BA59 #4166BA
square
#BA41A2 #BA9641 #41BA59 #4166BA
split-complementary
#BA41A2 #66BA41 #41BA96
monochromatic
#5F2153 #8D317B #BA41A2 #CC6CB9 #DC9ACF

Accessibility & contrast

On white

4.81
#BA41A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#BA41A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA41A2
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA41A2#FFFFFF#000000##FFFFFF
##BA41A21.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4366A5
Deuteranopia (green-blind)
#6A799F
Tritanopia (blue-blind)
#C3486C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba41a2;
/* rgb */ color: rgb(186, 65, 162);
/* oklch */ color: oklch(57.7% 0.189 336.5);
Tailwind
colors: {
  custom: {
    50: '#d27ebe',
    500: '#ba41a2',
    950: '#000000',
  },
}
SCSS
$custom: #ba41a2;
$custom-light: #d27ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba41a2",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 162
  },
  "hsl": {
    "h": 311.901,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.5769,
    "c": 0.18921,
    "h": 336.5
  },
  "luminance": 0.16828
}

Semantic roles & 50–950 ramp

primary
#BA41A2
secondary
#8FC89A
accent
#D86B50
background
#FDF8FB
surface
#FAEFF6
border
#D3CAD0
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA41A2

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

Preview Lab → · Contrast checker → · Palette generator →

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