#BA34B2#BA34B2

#BA34B2 is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.3% C 0.217 H 330.6°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#BA34B2
RGBrgb(186, 52, 178)
HSLhsl(304, 56%, 47%)
HSVhsv(304, 72%, 73%)
CMYKcmyk(0%, 72%, 4.3%, 27.1%)
CIE-LABlab(47.12, 66.51, -38.66)
CIE-LCHlch(47.12, 76.93, 329.83°)
OKLaboklab(57.27% 0.189 -0.1066)
OKLCHoklch(57.27% 0.217 330.6)
XYZxyz(29.5135, 16.1117, 43.6663)
Luminance0.1611 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA34B2 #34BA3C
analogous
#7F34BA #BA34B2 #BA346F
triadic
#BA34B2 #B2BA34 #34B2BA
tetradic
#BA34B2 #BA7F34 #34BA3C #346FBA
square
#BA34B2 #BA7F34 #34BA3C #346FBA
split-complementary
#BA34B2 #6FBA34 #34BA7F
monochromatic
#5A1956 #8A2784 #BA34B2 #D15ACA #DE8AD9

Accessibility & contrast

On white

4.97
#BA34B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#BA34B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA34B2
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA34B2#FFFFFF#000000##FFFFFF
##BA34B21.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2664B5
Deuteranopia (green-blind)
#5D76AF
Tritanopia (blue-blind)
#C14570
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba34b2;
/* rgb */ color: rgb(186, 52, 178);
/* oklch */ color: oklch(57.3% 0.217 330.6);
Tailwind
colors: {
  custom: {
    50: '#d279c9',
    500: '#ba34b2',
    950: '#000000',
  },
}
SCSS
$custom: #ba34b2;
$custom-light: #d279c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba34b2",
  "rgb": {
    "r": 186,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 303.582,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.57274,
    "c": 0.21698,
    "h": 330.6
  },
  "luminance": 0.16109
}

Semantic roles & 50–950 ramp

primary
#BA34B2
secondary
#81C886
accent
#E05148
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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