#BA34C1#BA34C1

#BA34C1 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 58.1% C 0.228 H 325.8°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#BA34C1
RGBrgb(186, 52, 193)
HSLhsl(297, 58%, 48%)
HSVhsv(297, 73%, 76%)
CMYKcmyk(3.6%, 73.1%, 0%, 24.3%)
CIE-LABlab(47.94, 68.95, -46.13)
CIE-LCHlch(47.94, 82.95, 326.22°)
OKLaboklab(58.13% 0.189 -0.1283)
OKLCHoklch(58.13% 0.228 325.8)
XYZxyz(31.1027, 16.7474, 52.0361)
Luminance0.1674 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA34C1 #3BC134
analogous
#7334C1 #BA34C1 #C13482
triadic
#BA34C1 #C1BA34 #34C1BA
tetradic
#BA34C1 #C17334 #3BC134 #3482C1
square
#BA34C1 #C17334 #3BC134 #3482C1
split-complementary
#BA34C1 #82C134 #34C173
monochromatic
#5D1A61 #8C2791 #BA34C1 #CE5ED4 #DD8FE1

Accessibility & contrast

On white

4.83
#BA34C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#BA34C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA34C1
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA34C1#FFFFFF#000000##FFFFFF
##BA34C11.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0667C5
Deuteranopia (green-blind)
#5477BE
Tritanopia (blue-blind)
#BF4C78
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba34c1;
/* rgb */ color: rgb(186, 52, 193);
/* oklch */ color: oklch(58.1% 0.228 325.8);
Tailwind
colors: {
  custom: {
    50: '#d379d4',
    500: '#ba34c1',
    950: '#000000',
  },
}
SCSS
$custom: #ba34c1;
$custom-light: #d379d4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba34c1",
  "rgb": {
    "r": 186,
    "g": 52,
    "b": 193
  },
  "hsl": {
    "h": 297.021,
    "s": 57.551,
    "l": 48.039
  },
  "oklch": {
    "l": 0.58125,
    "c": 0.22844,
    "h": 325.8
  },
  "luminance": 0.16745
}

Semantic roles & 50–950 ramp

primary
#BA34C1
secondary
#89CB86
accent
#E1474F
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BA34C1

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

Preview Lab → · Contrast checker → · Palette generator →

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