#BA34C6#BA34C6

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

Color values

HEX#BA34C6
RGBrgb(186, 52, 198)
HSLhsl(295, 58%, 49%)
HSVhsv(295, 74%, 78%)
CMYKcmyk(6.1%, 73.7%, 0%, 22.4%)
CIE-LABlab(48.23, 69.79, -48.57)
CIE-LCHlch(48.23, 85.03, 325.17°)
OKLaboklab(58.42% 0.1888 -0.1354)
OKLCHoklch(58.42% 0.232 324.4)
XYZxyz(31.6699, 16.9743, 55.0234)
Luminance0.1697 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA34C6 #40C634
analogous
#7134C6 #BA34C6 #C63489
triadic
#BA34C6 #C6BA34 #34C6BA
tetradic
#BA34C6 #C67134 #40C634 #3489C6
square
#BA34C6 #C67134 #40C634 #3489C6
split-complementary
#BA34C6 #89C634 #34C671
monochromatic
#5F1B65 #8C2796 #BA34C6 #CC62D6 #DC92E2

Accessibility & contrast

On white

4.78
#BA34C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA34C6
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA34C6#FFFFFF#000000##FFFFFF
##BA34C61.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CA
Deuteranopia (green-blind)
#5078C3
Tritanopia (blue-blind)
#BE4E7B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba34c6;
/* rgb */ color: rgb(186, 52, 198);
/* oklch */ color: oklch(58.4% 0.232 324.4);
Tailwind
colors: {
  custom: {
    50: '#d379d8',
    500: '#ba34c6',
    950: '#000000',
  },
}
SCSS
$custom: #ba34c6;
$custom-light: #d379d8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba34c6",
  "rgb": {
    "r": 186,
    "g": 52,
    "b": 198
  },
  "hsl": {
    "h": 295.068,
    "s": 58.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.58423,
    "c": 0.23235,
    "h": 324.4
  },
  "luminance": 0.16972
}

Semantic roles & 50–950 ramp

primary
#BA34C6
secondary
#8ECD89
accent
#E24653
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BA34C6

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

Preview Lab → · Contrast checker → · Palette generator →

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