#BA39BF#BA39BF

#BA39BF is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.4% C 0.221 H 326.4°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#BA39BF
RGBrgb(186, 57, 191)
HSLhsl(298, 54%, 49%)
HSVhsv(298, 70%, 75%)
CMYKcmyk(2.6%, 70.2%, 0%, 25.1%)
CIE-LABlab(48.42, 66.92, -44.20)
CIE-LCHlch(48.42, 80.20, 326.56°)
OKLaboklab(58.43% 0.1843 -0.1227)
OKLCHoklch(58.43% 0.221 326.4)
XYZxyz(31.1162, 17.1290, 50.9474)
Luminance0.1713 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA39BF #3EBF39
analogous
#7739BF #BA39BF #BF3981
triadic
#BA39BF #BFBA39 #39BFBA
tetradic
#BA39BF #BF7739 #3EBF39 #3981BF
square
#BA39BF #BF7739 #3EBF39 #3981BF
split-complementary
#BA39BF #81BF39 #39BF77
monochromatic
#5E1D61 #8C2B90 #BA39BF #CD64D1 #DC93DF

Accessibility & contrast

On white

4.75
#BA39BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#BA39BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA39BF
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA39BF#FFFFFF#000000##FFFFFF
##BA39BF1.004.754.434.75
#FFFFFF4.751.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B69C3
Deuteranopia (green-blind)
#5879BC
Tritanopia (blue-blind)
#BF4E78
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba39bf;
/* rgb */ color: rgb(186, 57, 191);
/* oklch */ color: oklch(58.4% 0.221 326.4);
Tailwind
colors: {
  custom: {
    50: '#d27bd3',
    500: '#ba39bf',
    950: '#000000',
  },
}
SCSS
$custom: #ba39bf;
$custom-light: #d27bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba39bf",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 191
  },
  "hsl": {
    "h": 297.761,
    "s": 54.032,
    "l": 48.627
  },
  "oklch": {
    "l": 0.58434,
    "c": 0.22143,
    "h": 326.4
  },
  "luminance": 0.17127
}

Semantic roles & 50–950 ramp

primary
#BA39BF
secondary
#8CCA8A
accent
#DD4A50
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BA39BF

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

Preview Lab → · Contrast checker → · Palette generator →

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