#BA34A2#BA34A2

#BA34A2 is a mid, highly saturated pink. Relative luminance 0.155; OKLCH L 56.4% C 0.205 H 336.2°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#BA34A2
RGBrgb(186, 52, 162)
HSLhsl(311, 56%, 47%)
HSVhsv(311, 72%, 73%)
CMYKcmyk(0%, 72%, 12.9%, 27.1%)
CIE-LABlab(46.32, 64.07, -30.46)
CIE-LCHlch(46.32, 70.94, 334.58°)
OKLaboklab(56.44% 0.1879 -0.083)
OKLCHoklch(56.44% 0.205 336.2)
XYZxyz(27.9997, 15.5062, 35.6938)
Luminance0.1550 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA34A2 #34BA4C
analogous
#8F34BA #BA34A2 #BA345F
triadic
#BA34A2 #A2BA34 #34A2BA
tetradic
#BA34A2 #BA8F34 #34BA4C #345FBA
square
#BA34A2 #BA8F34 #34BA4C #345FBA
split-complementary
#BA34A2 #5FBA34 #34BA8F
monochromatic
#5A194F #8A2778 #BA34A2 #D15ABC #DE8ACF

Accessibility & contrast

On white

5.12
#BA34A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#BA34A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA34A2
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA34A2#FFFFFF#000000##FFFFFF
##BA34A21.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3661A5
Deuteranopia (green-blind)
#64759F
Tritanopia (blue-blind)
#C43D67
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba34a2;
/* rgb */ color: rgb(186, 52, 162);
/* oklch */ color: oklch(56.4% 0.205 336.2);
Tailwind
colors: {
  custom: {
    50: '#d278be',
    500: '#ba34a2',
    950: '#000000',
  },
}
SCSS
$custom: #ba34a2;
$custom-light: #d278be;
$custom-dark: #000000;
JSON
{
  "hex": "#ba34a2",
  "rgb": {
    "r": 186,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 310.746,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.56437,
    "c": 0.2054,
    "h": 336.2
  },
  "luminance": 0.15504
}

Semantic roles & 50–950 ramp

primary
#BA34A2
secondary
#81C88E
accent
#E06348
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA34A2

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

Preview Lab → · Contrast checker → · Palette generator →

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