#BA34A5#BA34A5

#BA34A5 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.6% C 0.208 H 335.1°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#BA34A5
RGBrgb(186, 52, 165)
HSLhsl(309, 56%, 47%)
HSVhsv(309, 72%, 73%)
CMYKcmyk(0%, 72%, 11.3%, 27.1%)
CIE-LABlab(46.46, 64.51, -32.01)
CIE-LCHlch(46.46, 72.02, 333.61°)
OKLaboklab(56.59% 0.1882 -0.0874)
OKLCHoklch(56.59% 0.208 335.1)
XYZxyz(28.2696, 15.6142, 37.1150)
Luminance0.1561 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA34A5 #34BA49
analogous
#8C34BA #BA34A5 #BA3462
triadic
#BA34A5 #A5BA34 #34A5BA
tetradic
#BA34A5 #BA8C34 #34BA49 #3462BA
square
#BA34A5 #BA8C34 #34BA49 #3462BA
split-complementary
#BA34A5 #62BA34 #34BA8C
monochromatic
#5A1950 #8A277B #BA34A5 #D15ABE #DE8AD1

Accessibility & contrast

On white

5.09
#BA34A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#BA34A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA34A5
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA34A5#FFFFFF#000000##FFFFFF
##BA34A51.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3461A8
Deuteranopia (green-blind)
#6375A2
Tritanopia (blue-blind)
#C33F69
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba34a5;
/* rgb */ color: rgb(186, 52, 165);
/* oklch */ color: oklch(56.6% 0.208 335.1);
Tailwind
colors: {
  custom: {
    50: '#d278c0',
    500: '#ba34a5',
    950: '#000000',
  },
}
SCSS
$custom: #ba34a5;
$custom-light: #d278c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba34a5",
  "rgb": {
    "r": 186,
    "g": 52,
    "b": 165
  },
  "hsl": {
    "h": 309.403,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.56589,
    "c": 0.20751,
    "h": 335.1
  },
  "luminance": 0.15612
}

Semantic roles & 50–950 ramp

primary
#BA34A5
secondary
#81C88D
accent
#E06048
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA34A5

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

Preview Lab → · Contrast checker → · Palette generator →

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