#BA43AB#BA43AB

#BA43AB is a mid, vivid purple. Relative luminance 0.174; OKLCH L 58.3% C 0.193 H 333.1°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#BA43AB
RGBrgb(186, 67, 171)
HSLhsl(308, 47%, 50%)
HSVhsv(308, 64%, 73%)
CMYKcmyk(0%, 64%, 8.1%, 27.1%)
CIE-LABlab(48.76, 59.82, -31.97)
CIE-LCHlch(48.76, 67.83, 331.88°)
OKLaboklab(58.34% 0.1723 -0.0874)
OKLCHoklch(58.34% 0.193 333.1)
XYZxyz(29.6076, 17.3960, 40.3185)
Luminance0.1739 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA43AB #43BA52
analogous
#8E43BA #BA43AB #BA4370
triadic
#BA43AB #ABBA43 #43ABBA
tetradic
#BA43AB #BA8E43 #43BA52 #4370BA
square
#BA43AB #BA8E43 #43BA52 #4370BA
split-complementary
#BA43AB #70BA43 #43BA8E
monochromatic
#602358 #8D3382 #BA43AB #CB6FC0 #DB9CD3

Accessibility & contrast

On white

4.69
#BA43AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#BA43AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA43AB
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA43AB#FFFFFF#000000##FFFFFF
##BA43AB1.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F69AE
Deuteranopia (green-blind)
#677AA8
Tritanopia (blue-blind)
#C24D71
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba43ab;
/* rgb */ color: rgb(186, 67, 171);
/* oklch */ color: oklch(58.3% 0.193 333.1);
Tailwind
colors: {
  custom: {
    50: '#d27fc4',
    500: '#ba43ab',
    950: '#000000',
  },
}
SCSS
$custom: #ba43ab;
$custom-light: #d27fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba43ab",
  "rgb": {
    "r": 186,
    "g": 67,
    "b": 171
  },
  "hsl": {
    "h": 307.563,
    "s": 47.036,
    "l": 49.608
  },
  "oklch": {
    "l": 0.58343,
    "c": 0.19324,
    "h": 333.1
  },
  "luminance": 0.17394
}

Semantic roles & 50–950 ramp

primary
#BA43AB
secondary
#91C898
accent
#D76251
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA43AB

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

Preview Lab → · Contrast checker → · Palette generator →

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