#BA39B4#BA39B4

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

Color values

HEX#BA39B4
RGBrgb(186, 57, 180)
HSLhsl(303, 53%, 48%)
HSVhsv(303, 69%, 73%)
CMYKcmyk(0%, 69.4%, 3.2%, 27.1%)
CIE-LABlab(47.83, 65.11, -38.71)
CIE-LCHlch(47.83, 75.75, 329.27°)
OKLaboklab(57.82% 0.1841 -0.1068)
OKLCHoklch(57.82% 0.213 329.9)
XYZxyz(29.9509, 16.6629, 44.8099)
Luminance0.1666 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA39B4 #39BA3F
analogous
#8039BA #BA39B4 #BA3973
triadic
#BA39B4 #B4BA39 #39B4BA
tetradic
#BA39B4 #BA8039 #39BA3F #3973BA
square
#BA39B4 #BA8039 #39BA3F #3973BA
split-complementary
#BA39B4 #73BA39 #39BA80
monochromatic
#5C1C59 #8B2B87 #BA39B4 #CF61CA #DD90DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA39B4#FFFFFF#000000##FFFFFF
##BA39B41.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)
#2B66B7
Deuteranopia (green-blind)
#5E78B1
Tritanopia (blue-blind)
#C14972
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba39b4;
/* rgb */ color: rgb(186, 57, 180);
/* oklch */ color: oklch(57.8% 0.213 329.9);
Tailwind
colors: {
  custom: {
    50: '#d27bcb',
    500: '#ba39b4',
    950: '#000000',
  },
}
SCSS
$custom: #ba39b4;
$custom-light: #d27bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba39b4",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 180
  },
  "hsl": {
    "h": 302.791,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.5782,
    "c": 0.21284,
    "h": 329.9
  },
  "luminance": 0.16661
}

Semantic roles & 50–950 ramp

primary
#BA39B4
secondary
#87C88A
accent
#DC524B
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA39B4

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

Preview Lab → · Contrast checker → · Palette generator →

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