#BA41CB#BA41CB

#BA41CB is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 59.9% C 0.222 H 322.5°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#BA41CB
RGBrgb(186, 65, 203)
HSLhsl(293, 57%, 53%)
HSVhsv(293, 68%, 80%)
CMYKcmyk(8.4%, 68%, 0%, 20.4%)
CIE-LABlab(50.14, 66.06, -48.41)
CIE-LCHlch(50.14, 81.90, 323.77°)
OKLaboklab(59.88% 0.1761 -0.135)
OKLCHoklch(59.88% 0.222 322.5)
XYZxyz(32.9184, 18.5333, 58.3317)
Luminance0.1853 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA41CB #52CB41
analogous
#7541CB #BA41CB #CB4197
triadic
#BA41CB #CBBA41 #41CBBA
tetradic
#BA41CB #CB7541 #52CB41 #4197CB
square
#BA41CB #CB7541 #52CB41 #4197CB
split-complementary
#BA41CB #97CB41 #41CB75
monochromatic
#681F72 #942CA2 #BA41CB #CB71D8 #DDA1E5

Accessibility & contrast

On white

4.46
#BA41CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#BA41CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA41CB
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA41CB#FFFFFF#000000##000000
##BA41CB1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#166ECF
Deuteranopia (green-blind)
#547CC8
Tritanopia (blue-blind)
#BC5981
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba41cb;
/* rgb */ color: rgb(186, 65, 203);
/* oklch */ color: oklch(59.9% 0.222 322.5);
Tailwind
colors: {
  custom: {
    50: '#d27fdb',
    500: '#ba41cb',
    950: '#000000',
  },
}
SCSS
$custom: #ba41cb;
$custom-light: #d27fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba41cb",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 203
  },
  "hsl": {
    "h": 292.609,
    "s": 57.025,
    "l": 52.549
  },
  "oklch": {
    "l": 0.59881,
    "c": 0.22187,
    "h": 322.5
  },
  "luminance": 0.18531
}

Semantic roles & 50–950 ramp

primary
#BA41CB
secondary
#9DD296
accent
#E0485A
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BA41CB

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

Preview Lab → · Contrast checker → · Palette generator →

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