#BA41DB#BA41DB

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

Color values

HEX#BA41DB
RGBrgb(186, 65, 219)
HSLhsl(287, 68%, 56%)
HSVhsv(287, 70%, 86%)
CMYKcmyk(15.1%, 70.3%, 0%, 14.1%)
CIE-LABlab(51.08, 69.00, -56.05)
CIE-LCHlch(51.08, 88.89, 320.91°)
OKLaboklab(60.86% 0.1753 -0.1573)
OKLCHoklch(60.86% 0.236 318.1)
XYZxyz(34.9244, 19.3357, 68.8966)
Luminance0.1933 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA41DB #62DB41
analogous
#6D41DB #BA41DB #DB41AF
triadic
#BA41DB #DBBA41 #41DBBA
tetradic
#BA41DB #DB6D41 #62DB41 #41AFDB
square
#BA41DB #DB6D41 #62DB41 #41AFDB
split-complementary
#BA41DB #AFDB41 #41DB6D
monochromatic
#701A88 #9B23BB #BA41DB #CD74E5 #DFA8EE

Accessibility & contrast

On white

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

On black

4.87
#BA41DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA41DB
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA41DB#FFFFFF#000000##000000
##BA41DB1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072DF
Deuteranopia (green-blind)
#487DD7
Tritanopia (blue-blind)
#B95F8A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba41db;
/* rgb */ color: rgb(186, 65, 219);
/* oklch */ color: oklch(60.9% 0.236 318.1);
Tailwind
colors: {
  custom: {
    50: '#d380e7',
    500: '#ba41db',
    950: '#000000',
  },
}
SCSS
$custom: #ba41db;
$custom-light: #d380e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba41db",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 219
  },
  "hsl": {
    "h": 287.143,
    "s": 68.142,
    "l": 55.686
  },
  "oklch": {
    "l": 0.60856,
    "c": 0.23557,
    "h": 318.1
  },
  "luminance": 0.19334
}

Semantic roles & 50–950 ramp

primary
#BA41DB
secondary
#AADC9C
accent
#EB3D62
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA41DB

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

Preview Lab → · Contrast checker → · Palette generator →

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