#BA34A7#BA34A7

#BA34A7 is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.7% C 0.209 H 334.4°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#BA34A7
RGBrgb(186, 52, 167)
HSLhsl(309, 56%, 47%)
HSVhsv(309, 72%, 73%)
CMYKcmyk(0%, 72%, 10.2%, 27.1%)
CIE-LABlab(46.56, 64.81, -33.05)
CIE-LCHlch(46.56, 72.75, 332.98°)
OKLaboklab(56.69% 0.1884 -0.0904)
OKLCHoklch(56.69% 0.209 334.4)
XYZxyz(28.4530, 15.6876, 38.0812)
Luminance0.1568 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA34A7 #34BA47
analogous
#8A34BA #BA34A7 #BA3464
triadic
#BA34A7 #A7BA34 #34A7BA
tetradic
#BA34A7 #BA8A34 #34BA47 #3464BA
square
#BA34A7 #BA8A34 #34BA47 #3464BA
split-complementary
#BA34A7 #64BA34 #34BA8A
monochromatic
#5A1951 #8A277C #BA34A7 #D15AC0 #DE8AD2

Accessibility & contrast

On white

5.08
#BA34A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#BA34A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA34A7
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA34A7#FFFFFF#000000##FFFFFF
##BA34A71.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3262AA
Deuteranopia (green-blind)
#6275A4
Tritanopia (blue-blind)
#C3406A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba34a7;
/* rgb */ color: rgb(186, 52, 167);
/* oklch */ color: oklch(56.7% 0.209 334.4);
Tailwind
colors: {
  custom: {
    50: '#d278c1',
    500: '#ba34a7',
    950: '#000000',
  },
}
SCSS
$custom: #ba34a7;
$custom-light: #d278c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba34a7",
  "rgb": {
    "r": 186,
    "g": 52,
    "b": 167
  },
  "hsl": {
    "h": 308.507,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.56691,
    "c": 0.20894,
    "h": 334.4
  },
  "luminance": 0.15685
}

Semantic roles & 50–950 ramp

primary
#BA34A7
secondary
#81C88B
accent
#E05E48
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA34A7

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

Preview Lab → · Contrast checker → · Palette generator →

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