#BA3AA6#BA3AA6

#BA3AA6 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.2% C 0.201 H 334.8°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#BA3AA6
RGBrgb(186, 58, 166)
HSLhsl(309, 52%, 48%)
HSVhsv(309, 69%, 73%)
CMYKcmyk(0%, 68.8%, 10.8%, 27.1%)
CIE-LABlab(47.26, 62.55, -31.36)
CIE-LCHlch(47.26, 69.97, 333.38°)
OKLaboklab(57.18% 0.182 -0.0856)
OKLCHoklch(57.18% 0.201 334.8)
XYZxyz(28.6460, 16.2208, 37.6912)
Luminance0.1622 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3AA6 #3ABA4E
analogous
#8E3ABA #BA3AA6 #BA3A66
triadic
#BA3AA6 #A6BA3A #3AA6BA
tetradic
#BA3AA6 #BA8E3A #3ABA4E #3A66BA
square
#BA3AA6 #BA8E3A #3ABA4E #3A66BA
split-complementary
#BA3AA6 #66BA3A #3ABA8E
monochromatic
#5D1D53 #8B2B7C #BA3AA6 #CE63BE #DD92D1

Accessibility & contrast

On white

4.95
#BA3AA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#BA3AA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3AA6
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3AA6#FFFFFF#000000##FFFFFF
##BA3AA61.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3964A9
Deuteranopia (green-blind)
#6577A3
Tritanopia (blue-blind)
#C3446B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba3aa6;
/* rgb */ color: rgb(186, 58, 166);
/* oklch */ color: oklch(57.2% 0.201 334.8);
Tailwind
colors: {
  custom: {
    50: '#d27bc1',
    500: '#ba3aa6',
    950: '#000000',
  },
}
SCSS
$custom: #ba3aa6;
$custom-light: #d27bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3aa6",
  "rgb": {
    "r": 186,
    "g": 58,
    "b": 166
  },
  "hsl": {
    "h": 309.375,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.57182,
    "c": 0.20116,
    "h": 334.8
  },
  "luminance": 0.16218
}

Semantic roles & 50–950 ramp

primary
#BA3AA6
secondary
#88C892
accent
#DC624C
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA3AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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