#BA34BC#BA34BC

#BA34BC is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.8% C 0.225 H 327.4°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#BA34BC
RGBrgb(186, 52, 188)
HSLhsl(299, 57%, 47%)
HSVhsv(299, 72%, 74%)
CMYKcmyk(1.1%, 72.3%, 0%, 26.3%)
CIE-LABlab(47.66, 68.12, -43.66)
CIE-LCHlch(47.66, 80.91, 327.34°)
OKLaboklab(57.84% 0.1891 -0.1211)
OKLCHoklch(57.84% 0.225 327.4)
XYZxyz(30.5543, 16.5281, 49.1481)
Luminance0.1653 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA34BC #36BC34
analogous
#7634BC #BA34BC #BC347A
triadic
#BA34BC #BCBA34 #34BCBA
tetradic
#BA34BC #BC7634 #36BC34 #347ABC
square
#BA34BC #BC7634 #36BC34 #347ABC
split-complementary
#BA34BC #7ABC34 #34BC76
monochromatic
#5B195C #8B278C #BA34BC #D05BD2 #DE8BDF

Accessibility & contrast

On white

4.88
#BA34BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#BA34BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA34BC
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA34BC#FFFFFF#000000##FFFFFF
##BA34BC1.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1666C0
Deuteranopia (green-blind)
#5777B9
Tritanopia (blue-blind)
#BF4A75
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba34bc;
/* rgb */ color: rgb(186, 52, 188);
/* oklch */ color: oklch(57.8% 0.225 327.4);
Tailwind
colors: {
  custom: {
    50: '#d379d1',
    500: '#ba34bc',
    950: '#000000',
  },
}
SCSS
$custom: #ba34bc;
$custom-light: #d379d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba34bc",
  "rgb": {
    "r": 186,
    "g": 52,
    "b": 188
  },
  "hsl": {
    "h": 299.118,
    "s": 56.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.57835,
    "c": 0.22456,
    "h": 327.4
  },
  "luminance": 0.16526
}

Semantic roles & 50–950 ramp

primary
#BA34BC
secondary
#84C983
accent
#E0484A
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA34BC

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

Preview Lab → · Contrast checker → · Palette generator →

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