#BA41E2#BA41E2

#BA41E2 is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.3% C 0.242 H 316.3°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#BA41E2
RGBrgb(186, 65, 226)
HSLhsl(285, 74%, 57%)
HSVhsv(285, 71%, 89%)
CMYKcmyk(17.7%, 71.2%, 0%, 11.4%)
CIE-LABlab(51.51, 70.32, -59.33)
CIE-LCHlch(51.51, 92.00, 319.85°)
OKLaboklab(61.3% 0.1747 -0.1669)
OKLCHoklch(61.3% 0.242 316.3)
XYZxyz(35.8654, 19.7121, 73.8523)
Luminance0.1971 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA41E2 #69E241
analogous
#6A41E2 #BA41E2 #E241BA
triadic
#BA41E2 #E2BA41 #41E2BA
tetradic
#BA41E2 #E26A41 #69E241 #41BAE2
square
#BA41E2 #E26A41 #69E241 #41BAE2
split-complementary
#BA41E2 #BAE241 #41E26A
monochromatic
#731692 #9D1EC7 #BA41E2 #CD76EA #E1ABF2

Accessibility & contrast

On white

4.25
#BA41E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#BA41E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA41E2
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA41E2#FFFFFF#000000##000000
##BA41E21.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E7
Deuteranopia (green-blind)
#417EDE
Tritanopia (blue-blind)
#B8628E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba41e2;
/* rgb */ color: rgb(186, 65, 226);
/* oklch */ color: oklch(61.3% 0.242 316.3);
Tailwind
colors: {
  custom: {
    50: '#d380ec',
    500: '#ba41e2',
    950: '#000000',
  },
}
SCSS
$custom: #ba41e2;
$custom-light: #d380ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ba41e2",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 226
  },
  "hsl": {
    "h": 285.093,
    "s": 73.516,
    "l": 57.059
  },
  "oklch": {
    "l": 0.61302,
    "c": 0.24165,
    "h": 316.3
  },
  "luminance": 0.19711
}

Semantic roles & 50–950 ramp

primary
#BA41E2
secondary
#AFE09F
accent
#F03865
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA41E2

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

Preview Lab → · Contrast checker → · Palette generator →

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