#BA34C9#BA34C9

#BA34C9 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.6% C 0.235 H 323.5°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#BA34C9
RGBrgb(186, 52, 201)
HSLhsl(294, 59%, 50%)
HSVhsv(294, 74%, 79%)
CMYKcmyk(7.5%, 74.1%, 0%, 21.2%)
CIE-LABlab(48.40, 70.30, -50.02)
CIE-LCHlch(48.40, 86.28, 324.57°)
OKLaboklab(58.61% 0.1887 -0.1396)
OKLCHoklch(58.61% 0.235 323.5)
XYZxyz(32.0193, 17.1141, 56.8638)
Luminance0.1711 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA34C9 #43C934
analogous
#7034C9 #BA34C9 #C9348D
triadic
#BA34C9 #C9BA34 #34C9BA
tetradic
#BA34C9 #C97034 #43C934 #348DC9
square
#BA34C9 #C97034 #43C934 #348DC9
split-complementary
#BA34C9 #8DC934 #34C970
monochromatic
#601B68 #8D2798 #BA34C9 #CB63D7 #DB94E3

Accessibility & contrast

On white

4.75
#BA34C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#BA34C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA34C9
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA34C9#FFFFFF#000000##FFFFFF
##BA34C91.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CD
Deuteranopia (green-blind)
#4E78C6
Tritanopia (blue-blind)
#BD507D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba34c9;
/* rgb */ color: rgb(186, 52, 201);
/* oklch */ color: oklch(58.6% 0.235 323.5);
Tailwind
colors: {
  custom: {
    50: '#d379da',
    500: '#ba34c9',
    950: '#000000',
  },
}
SCSS
$custom: #ba34c9;
$custom-light: #d379da;
$custom-dark: #000000;
JSON
{
  "hex": "#ba34c9",
  "rgb": {
    "r": 186,
    "g": 52,
    "b": 201
  },
  "hsl": {
    "h": 293.96,
    "s": 58.893,
    "l": 49.608
  },
  "oklch": {
    "l": 0.58605,
    "c": 0.23472,
    "h": 323.5
  },
  "luminance": 0.17112
}

Semantic roles & 50–950 ramp

primary
#BA34C9
secondary
#91CE8A
accent
#E24655
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#150A15
muted
#837C83

Preview Lab

Preview with #BA34C9

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

Preview Lab → · Contrast checker → · Palette generator →

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