#BA41AB#BA41AB

#BA41AB is a mid, vivid purple. Relative luminance 0.172; OKLCH L 58.1% C 0.196 H 333.1°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#BA41AB
RGBrgb(186, 65, 171)
HSLhsl(307, 48%, 49%)
HSVhsv(307, 65%, 73%)
CMYKcmyk(0%, 65.1%, 8.1%, 27.1%)
CIE-LABlab(48.46, 60.63, -32.43)
CIE-LCHlch(48.46, 68.76, 331.86°)
OKLaboklab(58.13% 0.1747 -0.0887)
OKLCHoklch(58.13% 0.196 333.1)
XYZxyz(29.4908, 17.1623, 40.2796)
Luminance0.1716 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA41AB #41BA50
analogous
#8D41BA #BA41AB #BA416F
triadic
#BA41AB #ABBA41 #41ABBA
tetradic
#BA41AB #BA8D41 #41BA50 #416FBA
square
#BA41AB #BA8D41 #41BA50 #416FBA
split-complementary
#BA41AB #6FBA41 #41BA8D
monochromatic
#5F2158 #8D3181 #BA41AB #CC6CC0 #DC9AD3

Accessibility & contrast

On white

4.74
#BA41AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#BA41AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA41AB
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA41AB#FFFFFF#000000##FFFFFF
##BA41AB1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D68AE
Deuteranopia (green-blind)
#6679A8
Tritanopia (blue-blind)
#C24B70
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba41ab;
/* rgb */ color: rgb(186, 65, 171);
/* oklch */ color: oklch(58.1% 0.196 333.1);
Tailwind
colors: {
  custom: {
    50: '#d27ec4',
    500: '#ba41ab',
    950: '#000000',
  },
}
SCSS
$custom: #ba41ab;
$custom-light: #d27ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba41ab",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 171
  },
  "hsl": {
    "h": 307.438,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58131,
    "c": 0.19592,
    "h": 333.1
  },
  "luminance": 0.1716
}

Semantic roles & 50–950 ramp

primary
#BA41AB
secondary
#8FC896
accent
#D86150
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA41AB

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

Preview Lab → · Contrast checker → · Palette generator →

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