#BA41AC#BA41AC

#BA41AC is a mid, vivid purple. Relative luminance 0.172; OKLCH L 58.2% C 0.197 H 332.7°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#BA41AC
RGBrgb(186, 65, 172)
HSLhsl(307, 48%, 49%)
HSVhsv(307, 65%, 73%)
CMYKcmyk(0%, 65.1%, 7.5%, 27.1%)
CIE-LABlab(48.51, 60.79, -32.94)
CIE-LCHlch(48.51, 69.14, 331.55°)
OKLaboklab(58.18% 0.1748 -0.0902)
OKLCHoklch(58.18% 0.197 332.7)
XYZxyz(29.5865, 17.2005, 40.7835)
Luminance0.1720 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA41AC #41BA4F
analogous
#8C41BA #BA41AC #BA4170
triadic
#BA41AC #ACBA41 #41ACBA
tetradic
#BA41AC #BA8C41 #41BA4F #4170BA
square
#BA41AC #BA8C41 #41BA4F #4170BA
split-complementary
#BA41AC #70BA41 #41BA8C
monochromatic
#5F2158 #8D3182 #BA41AC #CC6CC1 #DC9AD4

Accessibility & contrast

On white

4.73
#BA41AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#BA41AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA41AC
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA41AC#FFFFFF#000000##FFFFFF
##BA41AC1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C68AF
Deuteranopia (green-blind)
#6679A9
Tritanopia (blue-blind)
#C24C71
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba41ac;
/* rgb */ color: rgb(186, 65, 172);
/* oklch */ color: oklch(58.2% 0.197 332.7);
Tailwind
colors: {
  custom: {
    50: '#d27ec5',
    500: '#ba41ac',
    950: '#000000',
  },
}
SCSS
$custom: #ba41ac;
$custom-light: #d27ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba41ac",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 172
  },
  "hsl": {
    "h": 306.942,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58181,
    "c": 0.19669,
    "h": 332.7
  },
  "luminance": 0.17198
}

Semantic roles & 50–950 ramp

primary
#BA41AC
secondary
#8FC896
accent
#D86050
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA41AC

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

Preview Lab → · Contrast checker → · Palette generator →

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