#BA41B6#BA41B6

#BA41B6 is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.7% C 0.205 H 329.2°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#BA41B6
RGBrgb(186, 65, 182)
HSLhsl(302, 48%, 49%)
HSVhsv(302, 65%, 73%)
CMYKcmyk(0%, 65.1%, 2.2%, 27.1%)
CIE-LABlab(49.01, 62.42, -38.03)
CIE-LCHlch(49.01, 73.09, 328.65°)
OKLaboklab(58.7% 0.1756 -0.1048)
OKLCHoklch(58.7% 0.205 329.2)
XYZxyz(30.5832, 17.5993, 46.0331)
Luminance0.1760 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA41B6 #41BA45
analogous
#8141BA #BA41B6 #BA417A
triadic
#BA41B6 #B6BA41 #41B6BA
tetradic
#BA41B6 #BA8141 #41BA45 #417ABA
square
#BA41B6 #BA8141 #41BA45 #417ABA
split-complementary
#BA41B6 #7ABA41 #41BA81
monochromatic
#5F215D #8D318A #BA41B6 #CC6CC9 #DC9AD9

Accessibility & contrast

On white

4.65
#BA41B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#BA41B6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA41B6
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA41B6#FFFFFF#000000##FFFFFF
##BA41B61.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#346AB9
Deuteranopia (green-blind)
#617AB3
Tritanopia (blue-blind)
#C05076
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba41b6;
/* rgb */ color: rgb(186, 65, 182);
/* oklch */ color: oklch(58.7% 0.205 329.2);
Tailwind
colors: {
  custom: {
    50: '#d27fcc',
    500: '#ba41b6',
    950: '#000000',
  },
}
SCSS
$custom: #ba41b6;
$custom-light: #d27fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba41b6",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 182
  },
  "hsl": {
    "h": 301.983,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58701,
    "c": 0.20455,
    "h": 329.2
  },
  "luminance": 0.17597
}

Semantic roles & 50–950 ramp

primary
#BA41B6
secondary
#8FC891
accent
#D85550
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA41B6

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

Preview Lab → · Contrast checker → · Palette generator →

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