#BA41B4#BA41B4

#BA41B4 is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.6% C 0.203 H 329.9°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#BA41B4
RGBrgb(186, 65, 180)
HSLhsl(303, 48%, 49%)
HSVhsv(303, 65%, 73%)
CMYKcmyk(0%, 65.1%, 3.2%, 27.1%)
CIE-LABlab(48.91, 62.09, -37.02)
CIE-LCHlch(48.91, 72.29, 329.20°)
OKLaboklab(58.59% 0.1755 -0.1019)
OKLCHoklch(58.59% 0.203 329.9)
XYZxyz(30.3780, 17.5172, 44.9523)
Luminance0.1752 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA41B4 #41BA47
analogous
#8441BA #BA41B4 #BA4178
triadic
#BA41B4 #B4BA41 #41B4BA
tetradic
#BA41B4 #BA8441 #41BA47 #4178BA
square
#BA41B4 #BA8441 #41BA47 #4178BA
split-complementary
#BA41B4 #78BA41 #41BA84
monochromatic
#5F215C #8D3188 #BA41B4 #CC6CC7 #DC9AD8

Accessibility & contrast

On white

4.66
#BA41B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#BA41B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA41B4
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA41B4#FFFFFF#000000##FFFFFF
##BA41B41.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#366AB7
Deuteranopia (green-blind)
#627AB1
Tritanopia (blue-blind)
#C14F75
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba41b4;
/* rgb */ color: rgb(186, 65, 180);
/* oklch */ color: oklch(58.6% 0.203 329.9);
Tailwind
colors: {
  custom: {
    50: '#d27fcb',
    500: '#ba41b4',
    950: '#000000',
  },
}
SCSS
$custom: #ba41b4;
$custom-light: #d27fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba41b4",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 180
  },
  "hsl": {
    "h": 302.975,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58594,
    "c": 0.20294,
    "h": 329.9
  },
  "luminance": 0.17515
}

Semantic roles & 50–950 ramp

primary
#BA41B4
secondary
#8FC892
accent
#D85750
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA41B4

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

Preview Lab → · Contrast checker → · Palette generator →

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