#BA41A9#BA41A9

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

Color values

HEX#BA41A9
RGBrgb(186, 65, 169)
HSLhsl(308, 48%, 49%)
HSVhsv(308, 65%, 73%)
CMYKcmyk(0%, 65.1%, 9.1%, 27.1%)
CIE-LABlab(48.37, 60.32, -31.40)
CIE-LCHlch(48.37, 68.00, 332.50°)
OKLaboklab(58.03% 0.1745 -0.0858)
OKLCHoklch(58.03% 0.194 333.8)
XYZxyz(29.3016, 17.0866, 39.2832)
Luminance0.1708 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA41A9 #41BA52
analogous
#8F41BA #BA41A9 #BA416D
triadic
#BA41A9 #A9BA41 #41A9BA
tetradic
#BA41A9 #BA8F41 #41BA52 #416DBA
square
#BA41A9 #BA8F41 #41BA52 #416DBA
split-complementary
#BA41A9 #6DBA41 #41BA8F
monochromatic
#5F2157 #8D3180 #BA41A9 #CC6CBE #DC9AD2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA41A9#FFFFFF#000000##FFFFFF
##BA41A91.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)
#3F68AC
Deuteranopia (green-blind)
#6779A6
Tritanopia (blue-blind)
#C24A6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba41a9;
/* rgb */ color: rgb(186, 65, 169);
/* oklch */ color: oklch(58.0% 0.194 333.8);
Tailwind
colors: {
  custom: {
    50: '#d27ec3',
    500: '#ba41a9',
    950: '#000000',
  },
}
SCSS
$custom: #ba41a9;
$custom-light: #d27ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba41a9",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 169
  },
  "hsl": {
    "h": 308.43,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58031,
    "c": 0.19441,
    "h": 333.8
  },
  "luminance": 0.17084
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA41A9

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

Preview Lab → · Contrast checker → · Palette generator →

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