#BA41A8#BA41A8

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

Color values

HEX#BA41A8
RGBrgb(186, 65, 168)
HSLhsl(309, 48%, 49%)
HSVhsv(309, 65%, 73%)
CMYKcmyk(0%, 65.1%, 9.7%, 27.1%)
CIE-LABlab(48.32, 60.16, -30.88)
CIE-LCHlch(48.32, 67.62, 332.83°)
OKLaboklab(57.98% 0.1743 -0.0843)
OKLCHoklch(57.98% 0.194 334.2)
XYZxyz(29.2081, 17.0492, 38.7907)
Luminance0.1705 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA41A8 #41BA53
analogous
#9041BA #BA41A8 #BA416B
triadic
#BA41A8 #A8BA41 #41A8BA
tetradic
#BA41A8 #BA9041 #41BA53 #416BBA
square
#BA41A8 #BA9041 #41BA53 #416BBA
split-complementary
#BA41A8 #6BBA41 #41BA90
monochromatic
#5F2156 #8D317F #BA41A8 #CC6CBE #DC9AD2

Accessibility & contrast

On white

4.76
#BA41A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#BA41A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA41A8
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA41A8#FFFFFF#000000##FFFFFF
##BA41A81.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F67AB
Deuteranopia (green-blind)
#6779A5
Tritanopia (blue-blind)
#C24A6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba41a8;
/* rgb */ color: rgb(186, 65, 168);
/* oklch */ color: oklch(58.0% 0.194 334.2);
Tailwind
colors: {
  custom: {
    50: '#d27ec2',
    500: '#ba41a8',
    950: '#000000',
  },
}
SCSS
$custom: #ba41a8;
$custom-light: #d27ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba41a8",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 168
  },
  "hsl": {
    "h": 308.926,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.57981,
    "c": 0.19365,
    "h": 334.2
  },
  "luminance": 0.17047
}

Semantic roles & 50–950 ramp

primary
#BA41A8
secondary
#8FC898
accent
#D86450
background
#FDF8FB
surface
#FAEFF7
border
#D3CAD0
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA41A8

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

Preview Lab → · Contrast checker → · Palette generator →

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