#BA41D8#BA41D8

#BA41D8 is a mid, highly saturated purple. Relative luminance 0.192; OKLCH L 60.7% C 0.233 H 318.9°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#BA41D8
RGBrgb(186, 65, 216)
HSLhsl(288, 66%, 55%)
HSVhsv(288, 70%, 85%)
CMYKcmyk(13.9%, 69.9%, 0%, 15.3%)
CIE-LABlab(50.90, 68.44, -54.63)
CIE-LCHlch(50.90, 87.57, 321.40°)
OKLaboklab(60.67% 0.1755 -0.1532)
OKLCHoklch(60.67% 0.233 318.9)
XYZxyz(34.5330, 19.1792, 66.8354)
Luminance0.1918 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA41D8 #5FD841
analogous
#6E41D8 #BA41D8 #D841AB
triadic
#BA41D8 #D8BA41 #41D8BA
tetradic
#BA41D8 #D86E41 #5FD841 #41ABD8
square
#BA41D8 #D86E41 #5FD841 #41ABD8
split-complementary
#BA41D8 #ABD841 #41D86E
monochromatic
#6F1B84 #9A25B6 #BA41D8 #CC74E2 #DFA7ED

Accessibility & contrast

On white

4.34
#BA41D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#BA41D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA41D8
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA41D8#FFFFFF#000000##000000
##BA41D81.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071DC
Deuteranopia (green-blind)
#4A7DD4
Tritanopia (blue-blind)
#BA5E88
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ba41d8;
/* rgb */ color: rgb(186, 65, 216);
/* oklch */ color: oklch(60.7% 0.233 318.9);
Tailwind
colors: {
  custom: {
    50: '#d380e5',
    500: '#ba41d8',
    950: '#000000',
  },
}
SCSS
$custom: #ba41d8;
$custom-light: #d380e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba41d8",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 216
  },
  "hsl": {
    "h": 288.079,
    "s": 65.939,
    "l": 55.098
  },
  "oklch": {
    "l": 0.60668,
    "c": 0.23298,
    "h": 318.9
  },
  "luminance": 0.19178
}

Semantic roles & 50–950 ramp

primary
#BA41D8
secondary
#A7DA9B
accent
#E93F61
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA41D8

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

Preview Lab → · Contrast checker → · Palette generator →

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