#BA34B3#BA34B3

#BA34B3 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.3% C 0.218 H 330.2°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#BA34B3
RGBrgb(186, 52, 179)
HSLhsl(303, 56%, 47%)
HSVhsv(303, 72%, 73%)
CMYKcmyk(0%, 72%, 3.8%, 27.1%)
CIE-LABlab(47.17, 66.67, -39.16)
CIE-LCHlch(47.17, 77.32, 329.57°)
OKLaboklab(57.33% 0.189 -0.108)
OKLCHoklch(57.33% 0.218 330.2)
XYZxyz(29.6142, 16.1520, 44.1970)
Luminance0.1615 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA34B3 #34BA3B
analogous
#7E34BA #BA34B3 #BA3470
triadic
#BA34B3 #B3BA34 #34B3BA
tetradic
#BA34B3 #BA7E34 #34BA3B #3470BA
square
#BA34B3 #BA7E34 #34BA3B #3470BA
split-complementary
#BA34B3 #70BA34 #34BA7E
monochromatic
#5A1957 #8A2785 #BA34B3 #D15ACB #DE8ADA

Accessibility & contrast

On white

4.96
#BA34B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#BA34B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA34B3
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA34B3#FFFFFF#000000##FFFFFF
##BA34B31.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2564B7
Deuteranopia (green-blind)
#5C76B0
Tritanopia (blue-blind)
#C14570
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba34b3;
/* rgb */ color: rgb(186, 52, 179);
/* oklch */ color: oklch(57.3% 0.218 330.2);
Tailwind
colors: {
  custom: {
    50: '#d279ca',
    500: '#ba34b3',
    950: '#000000',
  },
}
SCSS
$custom: #ba34b3;
$custom-light: #d279ca;
$custom-dark: #000000;
JSON
{
  "hex": "#ba34b3",
  "rgb": {
    "r": 186,
    "g": 52,
    "b": 179
  },
  "hsl": {
    "h": 303.134,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.57329,
    "c": 0.21773,
    "h": 330.2
  },
  "luminance": 0.1615
}

Semantic roles & 50–950 ramp

primary
#BA34B3
secondary
#81C885
accent
#E05048
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA34B3

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

Preview Lab → · Contrast checker → · Palette generator →

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