#BA3AA1#BA3AA1

#BA3AA1 is a mid, vivid pink. Relative luminance 0.160; OKLCH L 56.9% C 0.198 H 336.7°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#BA3AA1
RGBrgb(186, 58, 161)
HSLhsl(312, 52%, 48%)
HSVhsv(312, 69%, 73%)
CMYKcmyk(0%, 68.8%, 13.4%, 27.1%)
CIE-LABlab(47.03, 61.80, -28.75)
CIE-LCHlch(47.03, 68.16, 335.05°)
OKLaboklab(56.94% 0.1815 -0.0782)
OKLCHoklch(56.94% 0.198 336.7)
XYZxyz(28.1962, 16.0409, 35.3225)
Luminance0.1604 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3AA1 #3ABA53
analogous
#933ABA #BA3AA1 #BA3A61
triadic
#BA3AA1 #A1BA3A #3AA1BA
tetradic
#BA3AA1 #BA933A #3ABA53 #3A61BA
square
#BA3AA1 #BA933A #3ABA53 #3A61BA
split-complementary
#BA3AA1 #61BA3A #3ABA93
monochromatic
#5D1D50 #8B2B79 #BA3AA1 #CE63B9 #DD92CE

Accessibility & contrast

On white

4.99
#BA3AA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#BA3AA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3AA1
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3AA1#FFFFFF#000000##FFFFFF
##BA3AA11.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D63A4
Deuteranopia (green-blind)
#67779E
Tritanopia (blue-blind)
#C44169
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba3aa1;
/* rgb */ color: rgb(186, 58, 161);
/* oklch */ color: oklch(56.9% 0.198 336.7);
Tailwind
colors: {
  custom: {
    50: '#d27bbd',
    500: '#ba3aa1',
    950: '#000000',
  },
}
SCSS
$custom: #ba3aa1;
$custom-light: #d27bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3aa1",
  "rgb": {
    "r": 186,
    "g": 58,
    "b": 161
  },
  "hsl": {
    "h": 311.719,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.56935,
    "c": 0.19757,
    "h": 336.7
  },
  "luminance": 0.16038
}

Semantic roles & 50–950 ramp

primary
#BA3AA1
secondary
#88C894
accent
#DC684C
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA3AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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