#BA34C7#BA34C7

#BA34C7 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.5% C 0.233 H 324.1°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#BA34C7
RGBrgb(186, 52, 199)
HSLhsl(295, 59%, 49%)
HSVhsv(295, 74%, 78%)
CMYKcmyk(6.5%, 73.9%, 0%, 22%)
CIE-LABlab(48.29, 69.96, -49.05)
CIE-LCHlch(48.29, 85.44, 324.96°)
OKLaboklab(58.48% 0.1888 -0.1368)
OKLCHoklch(58.48% 0.233 324.1)
XYZxyz(31.7856, 17.0206, 55.6329)
Luminance0.1702 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA34C7 #41C734
analogous
#7134C7 #BA34C7 #C7348B
triadic
#BA34C7 #C7BA34 #34C7BA
tetradic
#BA34C7 #C77134 #41C734 #348BC7
square
#BA34C7 #C77134 #41C734 #348BC7
split-complementary
#BA34C7 #8BC734 #34C771
monochromatic
#5F1B66 #8D2796 #BA34C7 #CC62D6 #DC93E3

Accessibility & contrast

On white

4.77
#BA34C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#BA34C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA34C7
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA34C7#FFFFFF#000000##FFFFFF
##BA34C71.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CB
Deuteranopia (green-blind)
#5078C4
Tritanopia (blue-blind)
#BD4F7B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba34c7;
/* rgb */ color: rgb(186, 52, 199);
/* oklch */ color: oklch(58.5% 0.233 324.1);
Tailwind
colors: {
  custom: {
    50: '#d379d9',
    500: '#ba34c7',
    950: '#000000',
  },
}
SCSS
$custom: #ba34c7;
$custom-light: #d379d9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba34c7",
  "rgb": {
    "r": 186,
    "g": 52,
    "b": 199
  },
  "hsl": {
    "h": 294.694,
    "s": 58.566,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58483,
    "c": 0.23314,
    "h": 324.1
  },
  "luminance": 0.17019
}

Semantic roles & 50–950 ramp

primary
#BA34C7
secondary
#8FCE89
accent
#E24654
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#150A15
muted
#837C83

Preview Lab

Preview with #BA34C7

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

Preview Lab → · Contrast checker → · Palette generator →

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