#BA34B5#BA34B5

#BA34B5 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.4% C 0.219 H 329.6°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#BA34B5
RGBrgb(186, 52, 181)
HSLhsl(302, 56%, 47%)
HSVhsv(302, 72%, 73%)
CMYKcmyk(0%, 72%, 2.7%, 27.1%)
CIE-LABlab(47.28, 66.99, -40.17)
CIE-LCHlch(47.28, 78.11, 329.05°)
OKLaboklab(57.44% 0.1891 -0.1109)
OKLCHoklch(57.44% 0.219 329.6)
XYZxyz(29.8180, 16.2335, 45.2700)
Luminance0.1623 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA34B5 #34BA39
analogous
#7C34BA #BA34B5 #BA3472
triadic
#BA34B5 #B5BA34 #34B5BA
tetradic
#BA34B5 #BA7C34 #34BA39 #3472BA
square
#BA34B5 #BA7C34 #34BA39 #3472BA
split-complementary
#BA34B5 #72BA34 #34BA7C
monochromatic
#5A1958 #8A2786 #BA34B5 #D15ACD #DE8ADB

Accessibility & contrast

On white

4.95
#BA34B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#BA34B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA34B5
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA34B5#FFFFFF#000000##FFFFFF
##BA34B51.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2265B9
Deuteranopia (green-blind)
#5B76B2
Tritanopia (blue-blind)
#C14671
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba34b5;
/* rgb */ color: rgb(186, 52, 181);
/* oklch */ color: oklch(57.4% 0.219 329.6);
Tailwind
colors: {
  custom: {
    50: '#d379cb',
    500: '#ba34b5',
    950: '#000000',
  },
}
SCSS
$custom: #ba34b5;
$custom-light: #d379cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba34b5",
  "rgb": {
    "r": 186,
    "g": 52,
    "b": 181
  },
  "hsl": {
    "h": 302.239,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.57439,
    "c": 0.21923,
    "h": 329.6
  },
  "luminance": 0.16231
}

Semantic roles & 50–950 ramp

primary
#BA34B5
secondary
#81C884
accent
#E04E48
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA34B5

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

Preview Lab → · Contrast checker → · Palette generator →

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