#BA34A1#BA34A1

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

Color values

HEX#BA34A1
RGBrgb(186, 52, 161)
HSLhsl(311, 56%, 47%)
HSVhsv(311, 72%, 73%)
CMYKcmyk(0%, 72%, 13.4%, 27.1%)
CIE-LABlab(46.27, 63.93, -29.93)
CIE-LCHlch(46.27, 70.59, 334.91°)
OKLaboklab(56.39% 0.1878 -0.0815)
OKLCHoklch(56.39% 0.205 336.5)
XYZxyz(27.9112, 15.4708, 35.2275)
Luminance0.1547 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA34A1 #34BA4D
analogous
#9034BA #BA34A1 #BA345E
triadic
#BA34A1 #A1BA34 #34A1BA
tetradic
#BA34A1 #BA9034 #34BA4D #345EBA
square
#BA34A1 #BA9034 #34BA4D #345EBA
split-complementary
#BA34A1 #5EBA34 #34BA90
monochromatic
#5A194E #8A2778 #BA34A1 #D15ABB #DE8ACF

Accessibility & contrast

On white

5.13
#BA34A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#BA34A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA34A1
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA34A1#FFFFFF#000000##FFFFFF
##BA34A11.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3761A4
Deuteranopia (green-blind)
#64759E
Tritanopia (blue-blind)
#C43D67
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba34a1;
/* rgb */ color: rgb(186, 52, 161);
/* oklch */ color: oklch(56.4% 0.205 336.5);
Tailwind
colors: {
  custom: {
    50: '#d278bd',
    500: '#ba34a1',
    950: '#000000',
  },
}
SCSS
$custom: #ba34a1;
$custom-light: #d278bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba34a1",
  "rgb": {
    "r": 186,
    "g": 52,
    "b": 161
  },
  "hsl": {
    "h": 311.194,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.56388,
    "c": 0.2047,
    "h": 336.5
  },
  "luminance": 0.15468
}

Semantic roles & 50–950 ramp

primary
#BA34A1
secondary
#81C88F
accent
#E06448
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA34A1

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

Preview Lab → · Contrast checker → · Palette generator →

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