#BA41DC#BA41DC

#BA41DC is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 60.9% C 0.236 H 317.8°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#BA41DC
RGBrgb(186, 65, 220)
HSLhsl(287, 69%, 56%)
HSVhsv(287, 70%, 86%)
CMYKcmyk(15.5%, 70.5%, 0%, 13.7%)
CIE-LABlab(51.14, 69.18, -56.52)
CIE-LCHlch(51.14, 89.34, 320.75°)
OKLaboklab(60.92% 0.1752 -0.1587)
OKLCHoklch(60.92% 0.236 317.8)
XYZxyz(35.0564, 19.3885, 69.5920)
Luminance0.1939 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA41DC #63DC41
analogous
#6C41DC #BA41DC #DC41B0
triadic
#BA41DC #DCBA41 #41DCBA
tetradic
#BA41DC #DC6C41 #63DC41 #41B0DC
square
#BA41DC #DC6C41 #63DC41 #41B0DC
split-complementary
#BA41DC #B0DC41 #41DC6C
monochromatic
#711989 #9B23BD #BA41DC #CD75E6 #E0A8EF

Accessibility & contrast

On white

4.31
#BA41DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#BA41DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA41DC
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA41DC#FFFFFF#000000##000000
##BA41DC1.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E0
Deuteranopia (green-blind)
#477ED8
Tritanopia (blue-blind)
#B9608B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba41dc;
/* rgb */ color: rgb(186, 65, 220);
/* oklch */ color: oklch(60.9% 0.236 317.8);
Tailwind
colors: {
  custom: {
    50: '#d380e8',
    500: '#ba41dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba41dc;
$custom-light: #d380e8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba41dc",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 220
  },
  "hsl": {
    "h": 286.839,
    "s": 68.889,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60919,
    "c": 0.23643,
    "h": 317.8
  },
  "luminance": 0.19387
}

Semantic roles & 50–950 ramp

primary
#BA41DC
secondary
#AADD9C
accent
#EC3C63
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA41DC

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

Preview Lab → · Contrast checker → · Palette generator →

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