#BA34C3#BA34C3

#BA34C3 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.2% C 0.230 H 325.2°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#BA34C3
RGBrgb(186, 52, 195)
HSLhsl(296, 58%, 48%)
HSVhsv(296, 73%, 76%)
CMYKcmyk(4.6%, 73.3%, 0%, 23.5%)
CIE-LABlab(48.05, 69.28, -47.10)
CIE-LCHlch(48.05, 83.78, 325.79°)
OKLaboklab(58.24% 0.189 -0.1311)
OKLCHoklch(58.24% 0.23 325.2)
XYZxyz(31.3273, 16.8373, 53.2191)
Luminance0.1683 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA34C3 #3DC334
analogous
#7234C3 #BA34C3 #C33484
triadic
#BA34C3 #C3BA34 #34C3BA
tetradic
#BA34C3 #C37234 #3DC334 #3484C3
square
#BA34C3 #C37234 #3DC334 #3484C3
split-complementary
#BA34C3 #84C334 #34C372
monochromatic
#5E1A62 #8C2793 #BA34C3 #CD60D5 #DC90E1

Accessibility & contrast

On white

4.81
#BA34C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#BA34C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA34C3
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA34C3#FFFFFF#000000##FFFFFF
##BA34C31.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068C7
Deuteranopia (green-blind)
#5378C0
Tritanopia (blue-blind)
#BE4D79
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba34c3;
/* rgb */ color: rgb(186, 52, 195);
/* oklch */ color: oklch(58.2% 0.230 325.2);
Tailwind
colors: {
  custom: {
    50: '#d379d6',
    500: '#ba34c3',
    950: '#000000',
  },
}
SCSS
$custom: #ba34c3;
$custom-light: #d379d6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba34c3",
  "rgb": {
    "r": 186,
    "g": 52,
    "b": 195
  },
  "hsl": {
    "h": 296.224,
    "s": 57.895,
    "l": 48.431
  },
  "oklch": {
    "l": 0.58244,
    "c": 0.23,
    "h": 325.2
  },
  "luminance": 0.16835
}

Semantic roles & 50–950 ramp

primary
#BA34C3
secondary
#8BCC87
accent
#E14750
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BA34C3

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

Preview Lab → · Contrast checker → · Palette generator →

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