#BA39BD#BA39BD

#BA39BD is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.3% C 0.220 H 327.0°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#BA39BD
RGBrgb(186, 57, 189)
HSLhsl(299, 54%, 48%)
HSVhsv(299, 70%, 74%)
CMYKcmyk(1.6%, 69.8%, 0%, 25.9%)
CIE-LABlab(48.31, 66.59, -43.21)
CIE-LCHlch(48.31, 79.38, 327.02°)
OKLaboklab(58.32% 0.1843 -0.1198)
OKLCHoklch(58.32% 0.22 327)
XYZxyz(30.8976, 17.0416, 49.7962)
Luminance0.1704 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA39BD #3CBD39
analogous
#7839BD #BA39BD #BD397E
triadic
#BA39BD #BDBA39 #39BDBA
tetradic
#BA39BD #BD7839 #3CBD39 #397EBD
square
#BA39BD #BD7839 #3CBD39 #397EBD
split-complementary
#BA39BD #7EBD39 #39BD78
monochromatic
#5D1D5F #8C2B8E #BA39BD #CE63D0 #DC92DE

Accessibility & contrast

On white

4.76
#BA39BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#BA39BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA39BD
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA39BD#FFFFFF#000000##FFFFFF
##BA39BD1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F68C1
Deuteranopia (green-blind)
#5978BA
Tritanopia (blue-blind)
#BF4D77
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba39bd;
/* rgb */ color: rgb(186, 57, 189);
/* oklch */ color: oklch(58.3% 0.220 327.0);
Tailwind
colors: {
  custom: {
    50: '#d27bd1',
    500: '#ba39bd',
    950: '#000000',
  },
}
SCSS
$custom: #ba39bd;
$custom-light: #d27bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba39bd",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 189
  },
  "hsl": {
    "h": 298.636,
    "s": 53.659,
    "l": 48.235
  },
  "oklch": {
    "l": 0.5832,
    "c": 0.21985,
    "h": 327
  },
  "luminance": 0.17039
}

Semantic roles & 50–950 ramp

primary
#BA39BD
secondary
#8AC989
accent
#DD4B4E
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA39BD

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

Preview Lab → · Contrast checker → · Palette generator →

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