#BA39BA#BA39BA

#BA39BA is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.2% C 0.217 H 327.9°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#BA39BA
RGBrgb(186, 57, 186)
HSLhsl(300, 53%, 48%)
HSVhsv(300, 69%, 73%)
CMYKcmyk(0%, 69.4%, 0%, 27.1%)
CIE-LABlab(48.15, 66.09, -41.72)
CIE-LCHlch(48.15, 78.15, 327.74°)
OKLaboklab(58.15% 0.1843 -0.1155)
OKLCHoklch(58.15% 0.217 327.9)
XYZxyz(30.5754, 16.9127, 48.0989)
Luminance0.1691 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA39BA #39BA39
analogous
#7939BA #BA39BA #BA3979
triadic
#BA39BA #BABA39 #39BABA
tetradic
#BA39BA #BA7939 #39BA39 #3979BA
square
#BA39BA #BA7939 #39BA39 #3979BA
split-complementary
#BA39BA #79BA39 #39BA79
monochromatic
#5C1C5C #8B2B8B #BA39BA #CF61CF #DD90DD

Accessibility & contrast

On white

4.79
#BA39BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#BA39BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA39BA
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA39BA#FFFFFF#000000##FFFFFF
##BA39BA1.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2468BE
Deuteranopia (green-blind)
#5B78B7
Tritanopia (blue-blind)
#C04C76
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba39ba;
/* rgb */ color: rgb(186, 57, 186);
/* oklch */ color: oklch(58.2% 0.217 327.9);
Tailwind
colors: {
  custom: {
    50: '#d27bcf',
    500: '#ba39ba',
    950: '#000000',
  },
}
SCSS
$custom: #ba39ba;
$custom-light: #d27bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba39ba",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 186
  },
  "hsl": {
    "h": 300,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.58151,
    "c": 0.21749,
    "h": 327.9
  },
  "luminance": 0.16911
}

Semantic roles & 50–950 ramp

primary
#BA39BA
secondary
#87C887
accent
#DC4B4B
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA39BA

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

Preview Lab → · Contrast checker → · Palette generator →

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