#BA34B6#BA34B6

#BA34B6 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.5% C 0.220 H 329.3°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#BA34B6
RGBrgb(186, 52, 182)
HSLhsl(302, 56%, 47%)
HSVhsv(302, 72%, 73%)
CMYKcmyk(0%, 72%, 2.2%, 27.1%)
CIE-LABlab(47.33, 67.15, -40.67)
CIE-LCHlch(47.33, 78.50, 328.80°)
OKLaboklab(57.5% 0.1891 -0.1124)
OKLCHoklch(57.5% 0.22 329.3)
XYZxyz(29.9210, 16.2747, 45.8123)
Luminance0.1627 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA34B6 #34BA38
analogous
#7B34BA #BA34B6 #BA3473
triadic
#BA34B6 #B6BA34 #34B6BA
tetradic
#BA34B6 #BA7B34 #34BA38 #3473BA
square
#BA34B6 #BA7B34 #34BA38 #3473BA
split-complementary
#BA34B6 #73BA34 #34BA7B
monochromatic
#5A1958 #8A2787 #BA34B6 #D15ACD #DE8ADC

Accessibility & contrast

On white

4.94
#BA34B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA34B6
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA34B6#FFFFFF#000000##FFFFFF
##BA34B61.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2165BA
Deuteranopia (green-blind)
#5A76B3
Tritanopia (blue-blind)
#C14772
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba34b6;
/* rgb */ color: rgb(186, 52, 182);
/* oklch */ color: oklch(57.5% 0.220 329.3);
Tailwind
colors: {
  custom: {
    50: '#d379cc',
    500: '#ba34b6',
    950: '#000000',
  },
}
SCSS
$custom: #ba34b6;
$custom-light: #d379cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba34b6",
  "rgb": {
    "r": 186,
    "g": 52,
    "b": 182
  },
  "hsl": {
    "h": 301.791,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.57495,
    "c": 0.21999,
    "h": 329.3
  },
  "luminance": 0.16272
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA34B6

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

Preview Lab → · Contrast checker → · Palette generator →

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