#BA41B8#BA41B8

#BA41B8 is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 58.8% C 0.206 H 328.5°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#BA41B8
RGBrgb(186, 65, 184)
HSLhsl(301, 48%, 49%)
HSVhsv(301, 65%, 73%)
CMYKcmyk(0%, 65.1%, 1.1%, 27.1%)
CIE-LABlab(49.11, 62.76, -39.03)
CIE-LCHlch(49.11, 73.91, 328.12°)
OKLaboklab(58.81% 0.1758 -0.1078)
OKLCHoklch(58.81% 0.206 328.5)
XYZxyz(30.7914, 17.6825, 47.1294)
Luminance0.1768 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA41B8 #41BA43
analogous
#8041BA #BA41B8 #BA417C
triadic
#BA41B8 #B8BA41 #41B8BA
tetradic
#BA41B8 #BA8041 #41BA43 #417CBA
square
#BA41B8 #BA8041 #41BA43 #417CBA
split-complementary
#BA41B8 #7CBA41 #41BA80
monochromatic
#5F215E #8D318B #BA41B8 #CC6CCA #DC9ADB

Accessibility & contrast

On white

4.63
#BA41B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#BA41B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA41B8
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA41B8#FFFFFF#000000##FFFFFF
##BA41B81.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#326ABB
Deuteranopia (green-blind)
#607AB5
Tritanopia (blue-blind)
#C05177
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba41b8;
/* rgb */ color: rgb(186, 65, 184);
/* oklch */ color: oklch(58.8% 0.206 328.5);
Tailwind
colors: {
  custom: {
    50: '#d27fce',
    500: '#ba41b8',
    950: '#000000',
  },
}
SCSS
$custom: #ba41b8;
$custom-light: #d27fce;
$custom-dark: #000000;
JSON
{
  "hex": "#ba41b8",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 184
  },
  "hsl": {
    "h": 300.992,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58808,
    "c": 0.20616,
    "h": 328.5
  },
  "luminance": 0.1768
}

Semantic roles & 50–950 ramp

primary
#BA41B8
secondary
#8FC890
accent
#D85250
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA41B8

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

Preview Lab → · Contrast checker → · Palette generator →

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