#BA41EA#BA41EA

#BA41EA is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.8% C 0.249 H 314.4°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#BA41EA
RGBrgb(186, 65, 234)
HSLhsl(283, 80%, 59%)
HSVhsv(283, 72%, 92%)
CMYKcmyk(20.5%, 72.2%, 0%, 8.2%)
CIE-LABlab(52.02, 71.86, -63.02)
CIE-LCHlch(52.02, 95.58, 318.75°)
OKLaboklab(61.83% 0.1738 -0.1778)
OKLCHoklch(61.83% 0.249 314.4)
XYZxyz(36.9888, 20.1615, 79.7691)
Luminance0.2016 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA41EA #71EA41
analogous
#6541EA #BA41EA #EA41C5
triadic
#BA41EA #EABA41 #41EABA
tetradic
#BA41EA #EA6541 #71EA41 #41C5EA
square
#BA41EA #EA6541 #71EA41 #41C5EA
split-complementary
#BA41EA #C5EA41 #41EA65
monochromatic
#77129F #A018D6 #BA41EA #CE78F0 #E2AFF6

Accessibility & contrast

On white

4.17
#BA41EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#BA41EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA41EA
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA41EA#FFFFFF#000000##000000
##BA41EA1.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075EF
Deuteranopia (green-blind)
#377FE6
Tritanopia (blue-blind)
#B66692
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba41ea;
/* rgb */ color: rgb(186, 65, 234);
/* oklch */ color: oklch(61.8% 0.249 314.4);
Tailwind
colors: {
  custom: {
    50: '#d381f2',
    500: '#ba41ea',
    950: '#000000',
  },
}
SCSS
$custom: #ba41ea;
$custom-light: #d381f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba41ea",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 234
  },
  "hsl": {
    "h": 282.959,
    "s": 80.095,
    "l": 58.627
  },
  "oklch": {
    "l": 0.61826,
    "c": 0.24864,
    "h": 314.4
  },
  "luminance": 0.2016
}

Semantic roles & 50–950 ramp

primary
#BA41EA
secondary
#B5E5A2
accent
#F73169
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B17
muted
#837C85

Preview Lab

Preview with #BA41EA

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

Preview Lab → · Contrast checker → · Palette generator →

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