#BA3AA2#BA3AA2

#BA3AA2 is a mid, vivid pink. Relative luminance 0.161; OKLCH L 57.0% C 0.198 H 336.3°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#BA3AA2
RGBrgb(186, 58, 162)
HSLhsl(311, 52%, 48%)
HSVhsv(311, 69%, 73%)
CMYKcmyk(0%, 68.8%, 12.9%, 27.1%)
CIE-LABlab(47.07, 61.94, -29.28)
CIE-LCHlch(47.07, 68.51, 334.70°)
OKLaboklab(56.98% 0.1816 -0.0796)
OKLCHoklch(56.98% 0.198 336.3)
XYZxyz(28.2848, 16.0763, 35.7888)
Luminance0.1607 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3AA2 #3ABA52
analogous
#923ABA #BA3AA2 #BA3A62
triadic
#BA3AA2 #A2BA3A #3AA2BA
tetradic
#BA3AA2 #BA923A #3ABA52 #3A62BA
square
#BA3AA2 #BA923A #3ABA52 #3A62BA
split-complementary
#BA3AA2 #62BA3A #3ABA92
monochromatic
#5D1D51 #8B2B79 #BA3AA2 #CE63BA #DD92CF

Accessibility & contrast

On white

4.98
#BA3AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA3AA2
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3AA2#FFFFFF#000000##FFFFFF
##BA3AA21.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C63A5
Deuteranopia (green-blind)
#67779F
Tritanopia (blue-blind)
#C34269
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba3aa2;
/* rgb */ color: rgb(186, 58, 162);
/* oklch */ color: oklch(57.0% 0.198 336.3);
Tailwind
colors: {
  custom: {
    50: '#d27bbe',
    500: '#ba3aa2',
    950: '#000000',
  },
}
SCSS
$custom: #ba3aa2;
$custom-light: #d27bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3aa2",
  "rgb": {
    "r": 186,
    "g": 58,
    "b": 162
  },
  "hsl": {
    "h": 311.25,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.56984,
    "c": 0.19828,
    "h": 336.3
  },
  "luminance": 0.16074
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA3AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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