#BA34BF#BA34BF

#BA34BF is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 58.0% C 0.227 H 326.4°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#BA34BF
RGBrgb(186, 52, 191)
HSLhsl(298, 57%, 48%)
HSVhsv(298, 73%, 75%)
CMYKcmyk(2.6%, 72.8%, 0%, 25.1%)
CIE-LABlab(47.83, 68.62, -45.14)
CIE-LCHlch(47.83, 82.13, 326.66°)
OKLaboklab(58.01% 0.1891 -0.1254)
OKLCHoklch(58.01% 0.227 326.4)
XYZxyz(30.8811, 16.6588, 50.8691)
Luminance0.1666 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA34BF #39BF34
analogous
#7534BF #BA34BF #BF347E
triadic
#BA34BF #BFBA34 #34BFBA
tetradic
#BA34BF #BF7534 #39BF34 #347EBF
square
#BA34BF #BF7534 #39BF34 #347EBF
split-complementary
#BA34BF #7EBF34 #34BF75
monochromatic
#5C1A5F #8B278F #BA34BF #CF5DD3 #DD8DE0

Accessibility & contrast

On white

4.85
#BA34BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#BA34BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA34BF
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA34BF#FFFFFF#000000##FFFFFF
##BA34BF1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D67C3
Deuteranopia (green-blind)
#5577BC
Tritanopia (blue-blind)
#BF4B77
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba34bf;
/* rgb */ color: rgb(186, 52, 191);
/* oklch */ color: oklch(58.0% 0.227 326.4);
Tailwind
colors: {
  custom: {
    50: '#d379d3',
    500: '#ba34bf',
    950: '#000000',
  },
}
SCSS
$custom: #ba34bf;
$custom-light: #d379d3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba34bf",
  "rgb": {
    "r": 186,
    "g": 52,
    "b": 191
  },
  "hsl": {
    "h": 297.842,
    "s": 57.202,
    "l": 47.647
  },
  "oklch": {
    "l": 0.58008,
    "c": 0.22688,
    "h": 326.4
  },
  "luminance": 0.16657
}

Semantic roles & 50–950 ramp

primary
#BA34BF
secondary
#87CA84
accent
#E0474D
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BA34BF

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

Preview Lab → · Contrast checker → · Palette generator →

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