#BA41AA#BA41AA

#BA41AA is a mid, vivid purple. Relative luminance 0.171; OKLCH L 58.1% C 0.195 H 333.4°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#BA41AA
RGBrgb(186, 65, 170)
HSLhsl(308, 48%, 49%)
HSVhsv(308, 65%, 73%)
CMYKcmyk(0%, 65.1%, 8.6%, 27.1%)
CIE-LABlab(48.42, 60.48, -31.91)
CIE-LCHlch(48.42, 68.38, 332.18°)
OKLaboklab(58.08% 0.1746 -0.0872)
OKLCHoklch(58.08% 0.195 333.4)
XYZxyz(29.3958, 17.1243, 39.7795)
Luminance0.1712 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA41AA #41BA51
analogous
#8E41BA #BA41AA #BA416E
triadic
#BA41AA #AABA41 #41AABA
tetradic
#BA41AA #BA8E41 #41BA51 #416EBA
square
#BA41AA #BA8E41 #41BA51 #416EBA
split-complementary
#BA41AA #6EBA41 #41BA8E
monochromatic
#5F2157 #8D3181 #BA41AA #CC6CBF #DC9AD3

Accessibility & contrast

On white

4.75
#BA41AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#BA41AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA41AA
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA41AA#FFFFFF#000000##FFFFFF
##BA41AA1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba41aa;
/* rgb */ color: rgb(186, 65, 170);
/* oklch */ color: oklch(58.1% 0.195 333.4);
Tailwind
colors: {
  custom: {
    50: '#d27ec3',
    500: '#ba41aa',
    950: '#000000',
  },
}
SCSS
$custom: #ba41aa;
$custom-light: #d27ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba41aa",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 170
  },
  "hsl": {
    "h": 307.934,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58081,
    "c": 0.19516,
    "h": 333.4
  },
  "luminance": 0.17122
}

Semantic roles & 50–950 ramp

primary
#BA41AA
secondary
#8FC897
accent
#D86250
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA41AA

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

Preview Lab → · Contrast checker → · Palette generator →

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