#BA34C5#BA34C5

#BA34C5 is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.4% C 0.232 H 324.7°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#BA34C5
RGBrgb(186, 52, 197)
HSLhsl(295, 58%, 49%)
HSVhsv(295, 74%, 77%)
CMYKcmyk(5.6%, 73.6%, 0%, 22.7%)
CIE-LABlab(48.17, 69.62, -48.08)
CIE-LCHlch(48.17, 84.61, 325.37°)
OKLaboklab(58.36% 0.1889 -0.134)
OKLCHoklch(58.36% 0.232 324.7)
XYZxyz(31.5549, 16.9283, 54.4180)
Luminance0.1693 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA34C5 #3FC534
analogous
#7234C5 #BA34C5 #C53488
triadic
#BA34C5 #C5BA34 #34C5BA
tetradic
#BA34C5 #C57234 #3FC534 #3488C5
square
#BA34C5 #C57234 #3FC534 #3488C5
split-complementary
#BA34C5 #88C534 #34C572
monochromatic
#5F1A64 #8C2795 #BA34C5 #CC61D5 #DC91E2

Accessibility & contrast

On white

4.79
#BA34C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#BA34C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA34C5
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA34C5#FFFFFF#000000##FFFFFF
##BA34C51.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068C9
Deuteranopia (green-blind)
#5178C2
Tritanopia (blue-blind)
#BE4E7A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba34c5;
/* rgb */ color: rgb(186, 52, 197);
/* oklch */ color: oklch(58.4% 0.232 324.7);
Tailwind
colors: {
  custom: {
    50: '#d379d7',
    500: '#ba34c5',
    950: '#000000',
  },
}
SCSS
$custom: #ba34c5;
$custom-light: #d379d7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba34c5",
  "rgb": {
    "r": 186,
    "g": 52,
    "b": 197
  },
  "hsl": {
    "h": 295.448,
    "s": 58.233,
    "l": 48.824
  },
  "oklch": {
    "l": 0.58363,
    "c": 0.23156,
    "h": 324.7
  },
  "luminance": 0.16926
}

Semantic roles & 50–950 ramp

primary
#BA34C5
secondary
#8DCD88
accent
#E14652
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BA34C5

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

Preview Lab → · Contrast checker → · Palette generator →

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