#BA34A9#BA34A9

#BA34A9 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.8% C 0.210 H 333.7°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#BA34A9
RGBrgb(186, 52, 169)
HSLhsl(308, 56%, 47%)
HSVhsv(308, 72%, 73%)
CMYKcmyk(0%, 72%, 9.1%, 27.1%)
CIE-LABlab(46.66, 65.12, -34.08)
CIE-LCHlch(46.66, 73.49, 332.38°)
OKLaboklab(56.79% 0.1885 -0.0934)
OKLCHoklch(56.79% 0.21 333.7)
XYZxyz(28.6393, 15.7621, 39.0625)
Luminance0.1576 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA34A9 #34BA45
analogous
#8834BA #BA34A9 #BA3466
triadic
#BA34A9 #A9BA34 #34A9BA
tetradic
#BA34A9 #BA8834 #34BA45 #3466BA
square
#BA34A9 #BA8834 #34BA45 #3466BA
split-complementary
#BA34A9 #66BA34 #34BA88
monochromatic
#5A1952 #8A277E #BA34A9 #D15AC2 #DE8AD4

Accessibility & contrast

On white

5.06
#BA34A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#BA34A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA34A9
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA34A9#FFFFFF#000000##FFFFFF
##BA34A91.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3062AC
Deuteranopia (green-blind)
#6175A6
Tritanopia (blue-blind)
#C3406B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba34a9;
/* rgb */ color: rgb(186, 52, 169);
/* oklch */ color: oklch(56.8% 0.210 333.7);
Tailwind
colors: {
  custom: {
    50: '#d278c3',
    500: '#ba34a9',
    950: '#000000',
  },
}
SCSS
$custom: #ba34a9;
$custom-light: #d278c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba34a9",
  "rgb": {
    "r": 186,
    "g": 52,
    "b": 169
  },
  "hsl": {
    "h": 307.612,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.56794,
    "c": 0.21037,
    "h": 333.7
  },
  "luminance": 0.1576
}

Semantic roles & 50–950 ramp

primary
#BA34A9
secondary
#81C88A
accent
#E05B48
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA34A9

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

Preview Lab → · Contrast checker → · Palette generator →

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