#BA39B9#BA39B9

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

Color values

HEX#BA39B9
RGBrgb(186, 57, 185)
HSLhsl(300, 53%, 48%)
HSVhsv(300, 69%, 73%)
CMYKcmyk(0%, 69.4%, 0.5%, 27.1%)
CIE-LABlab(48.10, 65.92, -41.22)
CIE-LCHlch(48.10, 77.75, 327.98°)
OKLaboklab(58.1% 0.1843 -0.114)
OKLCHoklch(58.1% 0.217 328.3)
XYZxyz(30.4694, 16.8703, 47.5410)
Luminance0.1687 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA39B9 #39BA3A
analogous
#7A39BA #BA39B9 #BA3979
triadic
#BA39B9 #B9BA39 #39B9BA
tetradic
#BA39B9 #BA7A39 #39BA3A #3979BA
square
#BA39B9 #BA7A39 #39BA3A #3979BA
split-complementary
#BA39B9 #79BA39 #39BA7A
monochromatic
#5C1C5C #8B2B8A #BA39B9 #CF61CE #DD90DC

Accessibility & contrast

On white

4.80
#BA39B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#BA39B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA39B9
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA39B9#FFFFFF#000000##FFFFFF
##BA39B91.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2567BD
Deuteranopia (green-blind)
#5B78B6
Tritanopia (blue-blind)
#C04B75
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba39b9;
/* rgb */ color: rgb(186, 57, 185);
/* oklch */ color: oklch(58.1% 0.217 328.3);
Tailwind
colors: {
  custom: {
    50: '#d27bce',
    500: '#ba39b9',
    950: '#000000',
  },
}
SCSS
$custom: #ba39b9;
$custom-light: #d27bce;
$custom-dark: #000000;
JSON
{
  "hex": "#ba39b9",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 185
  },
  "hsl": {
    "h": 300.465,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.58095,
    "c": 0.21671,
    "h": 328.3
  },
  "luminance": 0.16868
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA39B9

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

Preview Lab → · Contrast checker → · Palette generator →

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