#BA39B2#BA39B2

#BA39B2 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.7% C 0.211 H 330.6°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#BA39B2
RGBrgb(186, 57, 178)
HSLhsl(304, 53%, 48%)
HSVhsv(304, 69%, 73%)
CMYKcmyk(0%, 69.4%, 4.3%, 27.1%)
CIE-LABlab(47.73, 64.78, -37.70)
CIE-LCHlch(47.73, 74.96, 329.80°)
OKLaboklab(57.71% 0.184 -0.1038)
OKLCHoklch(57.71% 0.211 330.6)
XYZxyz(29.7486, 16.5820, 43.7447)
Luminance0.1658 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA39B2 #39BA41
analogous
#8139BA #BA39B2 #BA3971
triadic
#BA39B2 #B2BA39 #39B2BA
tetradic
#BA39B2 #BA8139 #39BA41 #3971BA
square
#BA39B2 #BA8139 #39BA41 #3971BA
split-complementary
#BA39B2 #71BA39 #39BA81
monochromatic
#5C1C58 #8B2B85 #BA39B2 #CF61C8 #DD90D8

Accessibility & contrast

On white

4.87
#BA39B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#BA39B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA39B2
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA39B2#FFFFFF#000000##FFFFFF
##BA39B21.004.874.324.87
#FFFFFF4.871.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D66B5
Deuteranopia (green-blind)
#5F78AF
Tritanopia (blue-blind)
#C14871
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba39b2;
/* rgb */ color: rgb(186, 57, 178);
/* oklch */ color: oklch(57.7% 0.211 330.6);
Tailwind
colors: {
  custom: {
    50: '#d27bc9',
    500: '#ba39b2',
    950: '#000000',
  },
}
SCSS
$custom: #ba39b2;
$custom-light: #d27bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba39b2",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 303.721,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.57712,
    "c": 0.2113,
    "h": 330.6
  },
  "luminance": 0.1658
}

Semantic roles & 50–950 ramp

primary
#BA39B2
secondary
#87C88B
accent
#DC544B
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA39B2

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

Preview Lab → · Contrast checker → · Palette generator →

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