#BA34A8#BA34A8

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

Color values

HEX#BA34A8
RGBrgb(186, 52, 168)
HSLhsl(308, 56%, 47%)
HSVhsv(308, 72%, 73%)
CMYKcmyk(0%, 72%, 9.7%, 27.1%)
CIE-LABlab(46.61, 64.96, -33.56)
CIE-LCHlch(46.61, 73.12, 332.68°)
OKLaboklab(56.74% 0.1885 -0.0919)
OKLCHoklch(56.74% 0.21 334)
XYZxyz(28.5458, 15.7247, 38.5699)
Luminance0.1572 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA34A8 #34BA46
analogous
#8934BA #BA34A8 #BA3465
triadic
#BA34A8 #A8BA34 #34A8BA
tetradic
#BA34A8 #BA8934 #34BA46 #3465BA
square
#BA34A8 #BA8934 #34BA46 #3465BA
split-complementary
#BA34A8 #65BA34 #34BA89
monochromatic
#5A1952 #8A277D #BA34A8 #D15AC1 #DE8AD3

Accessibility & contrast

On white

5.07
#BA34A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA34A8
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA34A8#FFFFFF#000000##FFFFFF
##BA34A81.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3162AB
Deuteranopia (green-blind)
#6175A5
Tritanopia (blue-blind)
#C3406A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba34a8;
/* rgb */ color: rgb(186, 52, 168);
/* oklch */ color: oklch(56.7% 0.210 334.0);
Tailwind
colors: {
  custom: {
    50: '#d278c2',
    500: '#ba34a8',
    950: '#000000',
  },
}
SCSS
$custom: #ba34a8;
$custom-light: #d278c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba34a8",
  "rgb": {
    "r": 186,
    "g": 52,
    "b": 168
  },
  "hsl": {
    "h": 308.06,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.56742,
    "c": 0.20966,
    "h": 334
  },
  "luminance": 0.15722
}

Semantic roles & 50–950 ramp

primary
#BA34A8
secondary
#81C88B
accent
#E05D48
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA34A8

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

Preview Lab → · Contrast checker → · Palette generator →

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