#BA41B7#BA41B7

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

Color values

HEX#BA41B7
RGBrgb(186, 65, 183)
HSLhsl(301, 48%, 49%)
HSVhsv(301, 65%, 73%)
CMYKcmyk(0%, 65.1%, 1.6%, 27.1%)
CIE-LABlab(49.06, 62.59, -38.53)
CIE-LCHlch(49.06, 73.50, 328.38°)
OKLaboklab(58.75% 0.1757 -0.1063)
OKLCHoklch(58.75% 0.205 328.8)
XYZxyz(30.6869, 17.6407, 46.5793)
Luminance0.1764 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA41B7 #41BA44
analogous
#8141BA #BA41B7 #BA417A
triadic
#BA41B7 #B7BA41 #41B7BA
tetradic
#BA41B7 #BA8141 #41BA44 #417ABA
square
#BA41B7 #BA8141 #41BA44 #417ABA
split-complementary
#BA41B7 #7ABA41 #41BA81
monochromatic
#5F215E #8D318A #BA41B7 #CC6CC9 #DC9ADA

Accessibility & contrast

On white

4.64
#BA41B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#BA41B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA41B7
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA41B7#FFFFFF#000000##FFFFFF
##BA41B71.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#336ABA
Deuteranopia (green-blind)
#607AB4
Tritanopia (blue-blind)
#C05076
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba41b7;
/* rgb */ color: rgb(186, 65, 183);
/* oklch */ color: oklch(58.8% 0.205 328.8);
Tailwind
colors: {
  custom: {
    50: '#d27fcd',
    500: '#ba41b7',
    950: '#000000',
  },
}
SCSS
$custom: #ba41b7;
$custom-light: #d27fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba41b7",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 183
  },
  "hsl": {
    "h": 301.488,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58754,
    "c": 0.20535,
    "h": 328.8
  },
  "luminance": 0.17639
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA41B7

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

Preview Lab → · Contrast checker → · Palette generator →

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