#BA39B6#BA39B6

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

Color values

HEX#BA39B6
RGBrgb(186, 57, 182)
HSLhsl(302, 53%, 48%)
HSVhsv(302, 69%, 73%)
CMYKcmyk(0%, 69.4%, 2.2%, 27.1%)
CIE-LABlab(47.94, 65.43, -39.72)
CIE-LCHlch(47.94, 76.54, 328.74°)
OKLaboklab(57.93% 0.1842 -0.1097)
OKLCHoklch(57.93% 0.214 329.2)
XYZxyz(30.1561, 16.7450, 45.8907)
Luminance0.1674 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA39B6 #39BA3D
analogous
#7D39BA #BA39B6 #BA3976
triadic
#BA39B6 #B6BA39 #39B6BA
tetradic
#BA39B6 #BA7D39 #39BA3D #3976BA
square
#BA39B6 #BA7D39 #39BA3D #3976BA
split-complementary
#BA39B6 #76BA39 #39BA7D
monochromatic
#5C1C5A #8B2B88 #BA39B6 #CF61CB #DD90DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA39B6#FFFFFF#000000##FFFFFF
##BA39B61.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)
#2967BA
Deuteranopia (green-blind)
#5D78B3
Tritanopia (blue-blind)
#C04A73
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba39b6;
/* rgb */ color: rgb(186, 57, 182);
/* oklch */ color: oklch(57.9% 0.214 329.2);
Tailwind
colors: {
  custom: {
    50: '#d27bcc',
    500: '#ba39b6',
    950: '#000000',
  },
}
SCSS
$custom: #ba39b6;
$custom-light: #d27bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba39b6",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 182
  },
  "hsl": {
    "h": 301.86,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.57929,
    "c": 0.21438,
    "h": 329.2
  },
  "luminance": 0.16743
}

Semantic roles & 50–950 ramp

primary
#BA39B6
secondary
#87C889
accent
#DC504B
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA39B6

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

Preview Lab → · Contrast checker → · Palette generator →

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