#BA34A6#BA34A6

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

Color values

HEX#BA34A6
RGBrgb(186, 52, 166)
HSLhsl(309, 56%, 47%)
HSVhsv(309, 72%, 73%)
CMYKcmyk(0%, 72%, 10.8%, 27.1%)
CIE-LABlab(46.51, 64.66, -32.53)
CIE-LCHlch(46.51, 72.39, 333.29°)
OKLaboklab(56.64% 0.1883 -0.0889)
OKLCHoklch(56.64% 0.208 334.7)
XYZxyz(28.3609, 15.6507, 37.5962)
Luminance0.1565 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA34A6 #34BA48
analogous
#8B34BA #BA34A6 #BA3463
triadic
#BA34A6 #A6BA34 #34A6BA
tetradic
#BA34A6 #BA8B34 #34BA48 #3463BA
square
#BA34A6 #BA8B34 #34BA48 #3463BA
split-complementary
#BA34A6 #63BA34 #34BA8B
monochromatic
#5A1951 #8A277B #BA34A6 #D15ABF #DE8AD2

Accessibility & contrast

On white

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

On black

4.13
#BA34A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##BA34A6#FFFFFF#000000##FFFFFF
##BA34A61.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3362A9
Deuteranopia (green-blind)
#6275A3
Tritanopia (blue-blind)
#C33F69
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba34a6;
/* rgb */ color: rgb(186, 52, 166);
/* oklch */ color: oklch(56.6% 0.208 334.7);
Tailwind
colors: {
  custom: {
    50: '#d278c1',
    500: '#ba34a6',
    950: '#000000',
  },
}
SCSS
$custom: #ba34a6;
$custom-light: #d278c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba34a6",
  "rgb": {
    "r": 186,
    "g": 52,
    "b": 166
  },
  "hsl": {
    "h": 308.955,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.5664,
    "c": 0.20822,
    "h": 334.7
  },
  "luminance": 0.15648
}

Semantic roles & 50–950 ramp

primary
#BA34A6
secondary
#81C88C
accent
#E05F48
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA34A6

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

Preview Lab → · Contrast checker → · Palette generator →

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