#BA52AC#BA52AC

#BA52AC is a mid, vivid purple. Relative luminance 0.195; OKLCH L 60.2% C 0.172 H 332.9°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#BA52AC
RGBrgb(186, 82, 172)
HSLhsl(308, 43%, 53%)
HSVhsv(308, 56%, 73%)
CMYKcmyk(0%, 55.9%, 7.5%, 27.1%)
CIE-LABlab(51.21, 53.39, -28.72)
CIE-LCHlch(51.21, 60.63, 331.72°)
OKLaboklab(60.16% 0.1533 -0.0783)
OKLCHoklch(60.16% 0.172 332.9)
XYZxyz(30.7134, 19.4544, 41.1591)
Luminance0.1945 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52AC #52BA60
analogous
#9452BA #BA52AC #BA5278
triadic
#BA52AC #ACBA52 #52ACBA
tetradic
#BA52AC #BA9452 #52BA60 #5278BA
square
#BA52AC #BA9452 #52BA60 #5278BA
split-complementary
#BA52AC #78BA52 #52BA94
monochromatic
#682A60 #943B88 #BA52AC #CB7EC1 #DDAAD6

Accessibility & contrast

On white

4.29
#BA52AC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#BA52AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52AC
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52AC#FFFFFF#000000##000000
##BA52AC1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F70AF
Deuteranopia (green-blind)
#6F7FA9
Tritanopia (blue-blind)
#C15977
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba52ac;
/* rgb */ color: rgb(186, 82, 172);
/* oklch */ color: oklch(60.2% 0.172 332.9);
Tailwind
colors: {
  custom: {
    50: '#d188c5',
    500: '#ba52ac',
    950: '#000000',
  },
}
SCSS
$custom: #ba52ac;
$custom-light: #d188c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52ac",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 172
  },
  "hsl": {
    "h": 308.077,
    "s": 42.975,
    "l": 52.549
  },
  "oklch": {
    "l": 0.60158,
    "c": 0.17213,
    "h": 332.9
  },
  "luminance": 0.19452
}

Semantic roles & 50–950 ramp

primary
#BA52AC
secondary
#9DCAA3
accent
#D36655
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C13
muted
#837D82

Preview Lab

Preview with #BA52AC

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

Preview Lab → · Contrast checker → · Palette generator →

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