#BA39B7#BA39B7

#BA39B7 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.0% C 0.215 H 328.9°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#BA39B7
RGBrgb(186, 57, 183)
HSLhsl(301, 53%, 48%)
HSVhsv(301, 69%, 73%)
CMYKcmyk(0%, 69.4%, 1.6%, 27.1%)
CIE-LABlab(47.99, 65.59, -40.22)
CIE-LCHlch(47.99, 76.94, 328.49°)
OKLaboklab(57.98% 0.1842 -0.1111)
OKLCHoklch(57.98% 0.215 328.9)
XYZxyz(30.2598, 16.7865, 46.4369)
Luminance0.1678 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA39B7 #39BA3C
analogous
#7C39BA #BA39B7 #BA3977
triadic
#BA39B7 #B7BA39 #39B7BA
tetradic
#BA39B7 #BA7C39 #39BA3C #3977BA
square
#BA39B7 #BA7C39 #39BA3C #3977BA
split-complementary
#BA39B7 #77BA39 #39BA7C
monochromatic
#5C1C5B #8B2B89 #BA39B7 #CF61CC #DD90DB

Accessibility & contrast

On white

4.82
#BA39B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#BA39B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA39B7
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA39B7#FFFFFF#000000##FFFFFF
##BA39B71.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2867BB
Deuteranopia (green-blind)
#5C78B4
Tritanopia (blue-blind)
#C04B74
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba39b7;
/* rgb */ color: rgb(186, 57, 183);
/* oklch */ color: oklch(58.0% 0.215 328.9);
Tailwind
colors: {
  custom: {
    50: '#d27bcd',
    500: '#ba39b7',
    950: '#000000',
  },
}
SCSS
$custom: #ba39b7;
$custom-light: #d27bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba39b7",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 183
  },
  "hsl": {
    "h": 301.395,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.57984,
    "c": 0.21516,
    "h": 328.9
  },
  "luminance": 0.16784
}

Semantic roles & 50–950 ramp

primary
#BA39B7
secondary
#87C888
accent
#DC4F4B
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA39B7

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

Preview Lab → · Contrast checker → · Palette generator →

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