#BA52AA#BA52AA

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

Color values

HEX#BA52AA
RGBrgb(186, 82, 170)
HSLhsl(309, 43%, 53%)
HSVhsv(309, 56%, 73%)
CMYKcmyk(0%, 55.9%, 8.6%, 27.1%)
CIE-LABlab(51.13, 53.06, -27.69)
CIE-LCHlch(51.13, 59.85, 332.44°)
OKLaboklab(60.06% 0.153 -0.0753)
OKLCHoklch(60.06% 0.171 333.8)
XYZxyz(30.5227, 19.3781, 40.1551)
Luminance0.1938 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52AA #52BA62
analogous
#9652BA #BA52AA #BA5276
triadic
#BA52AA #AABA52 #52AABA
tetradic
#BA52AA #BA9652 #52BA62 #5276BA
square
#BA52AA #BA9652 #52BA62 #5276BA
split-complementary
#BA52AA #76BA52 #52BA96
monochromatic
#682A5E #943B86 #BA52AA #CB7EBF #DDAAD5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA52AA#FFFFFF#000000##000000
##BA52AA1.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5070AD
Deuteranopia (green-blind)
#707FA7
Tritanopia (blue-blind)
#C25977
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba52aa;
/* rgb */ color: rgb(186, 82, 170);
/* oklch */ color: oklch(60.1% 0.171 333.8);
Tailwind
colors: {
  custom: {
    50: '#d188c3',
    500: '#ba52aa',
    950: '#000000',
  },
}
SCSS
$custom: #ba52aa;
$custom-light: #d188c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52aa",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 170
  },
  "hsl": {
    "h": 309.231,
    "s": 42.975,
    "l": 52.549
  },
  "oklch": {
    "l": 0.60064,
    "c": 0.17051,
    "h": 333.8
  },
  "luminance": 0.19376
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA52AA

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

Preview Lab → · Contrast checker → · Palette generator →

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