#BA52AB#BA52AB

#BA52AB is a mid, vivid purple. Relative luminance 0.194; OKLCH L 60.1% C 0.171 H 333.4°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#BA52AB
RGBrgb(186, 82, 171)
HSLhsl(309, 43%, 53%)
HSVhsv(309, 56%, 73%)
CMYKcmyk(0%, 55.9%, 8.1%, 27.1%)
CIE-LABlab(51.17, 53.23, -28.21)
CIE-LCHlch(51.17, 60.24, 332.08°)
OKLaboklab(60.11% 0.1531 -0.0768)
OKLCHoklch(60.11% 0.171 333.4)
XYZxyz(30.6177, 19.4161, 40.6552)
Luminance0.1941 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52AB #52BA61
analogous
#9552BA #BA52AB #BA5277
triadic
#BA52AB #ABBA52 #52ABBA
tetradic
#BA52AB #BA9552 #52BA61 #5277BA
square
#BA52AB #BA9552 #52BA61 #5277BA
split-complementary
#BA52AB #77BA52 #52BA95
monochromatic
#682A5F #943B87 #BA52AB #CB7EC0 #DDAAD5

Accessibility & contrast

On white

4.30
#BA52AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#BA52AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52AB
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52AB#FFFFFF#000000##000000
##BA52AB1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5070AE
Deuteranopia (green-blind)
#6F7FA8
Tritanopia (blue-blind)
#C25977
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba52ab;
/* rgb */ color: rgb(186, 82, 171);
/* oklch */ color: oklch(60.1% 0.171 333.4);
Tailwind
colors: {
  custom: {
    50: '#d188c4',
    500: '#ba52ab',
    950: '#000000',
  },
}
SCSS
$custom: #ba52ab;
$custom-light: #d188c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52ab",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 171
  },
  "hsl": {
    "h": 308.654,
    "s": 42.975,
    "l": 52.549
  },
  "oklch": {
    "l": 0.60111,
    "c": 0.17131,
    "h": 333.4
  },
  "luminance": 0.19414
}

Semantic roles & 50–950 ramp

primary
#BA52AB
secondary
#9DCAA4
accent
#D36755
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C12
muted
#837D81

Preview Lab

Preview with #BA52AB

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

Preview Lab → · Contrast checker → · Palette generator →

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