#BA41DF#BA41DF

#BA41DF is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 61.1% C 0.239 H 317.1°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#BA41DF
RGBrgb(186, 65, 223)
HSLhsl(286, 71%, 56%)
HSVhsv(286, 71%, 87%)
CMYKcmyk(16.6%, 70.9%, 0%, 12.5%)
CIE-LABlab(51.32, 69.75, -57.93)
CIE-LCHlch(51.32, 90.67, 320.29°)
OKLaboklab(61.11% 0.175 -0.1628)
OKLCHoklch(61.11% 0.239 317.1)
XYZxyz(35.4573, 19.5489, 71.7033)
Luminance0.1955 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA41DF #66DF41
analogous
#6B41DF #BA41DF #DF41B5
triadic
#BA41DF #DFBA41 #41DFBA
tetradic
#BA41DF #DF6B41 #66DF41 #41B5DF
square
#BA41DF #DF6B41 #66DF41 #41B5DF
split-complementary
#BA41DF #B5DF41 #41DF6B
monochromatic
#72188E #9C21C2 #BA41DF #CD75E8 #E0AAF1

Accessibility & contrast

On white

4.28
#BA41DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#BA41DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA41DF
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA41DF#FFFFFF#000000##000000
##BA41DF1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073E3
Deuteranopia (green-blind)
#447EDB
Tritanopia (blue-blind)
#B8618C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba41df;
/* rgb */ color: rgb(186, 65, 223);
/* oklch */ color: oklch(61.1% 0.239 317.1);
Tailwind
colors: {
  custom: {
    50: '#d380ea',
    500: '#ba41df',
    950: '#000000',
  },
}
SCSS
$custom: #ba41df;
$custom-light: #d380ea;
$custom-dark: #000000;
JSON
{
  "hex": "#ba41df",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 223
  },
  "hsl": {
    "h": 285.949,
    "s": 71.171,
    "l": 56.471
  },
  "oklch": {
    "l": 0.6111,
    "c": 0.23904,
    "h": 317.1
  },
  "luminance": 0.19547
}

Semantic roles & 50–950 ramp

primary
#BA41DF
secondary
#ADDE9D
accent
#EE3A64
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA41DF

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

Preview Lab → · Contrast checker → · Palette generator →

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