#BA39B5#BA39B5

#BA39B5 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.9% C 0.214 H 329.6°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#BA39B5
RGBrgb(186, 57, 181)
HSLhsl(302, 53%, 48%)
HSVhsv(302, 69%, 73%)
CMYKcmyk(0%, 69.4%, 2.7%, 27.1%)
CIE-LABlab(47.88, 65.27, -39.21)
CIE-LCHlch(47.88, 76.14, 329.00°)
OKLaboklab(57.87% 0.1842 -0.1082)
OKLCHoklch(57.87% 0.214 329.6)
XYZxyz(30.0531, 16.7038, 45.3484)
Luminance0.1670 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA39B5 #39BA3E
analogous
#7F39BA #BA39B5 #BA3974
triadic
#BA39B5 #B5BA39 #39B5BA
tetradic
#BA39B5 #BA7F39 #39BA3E #3974BA
square
#BA39B5 #BA7F39 #39BA3E #3974BA
split-complementary
#BA39B5 #74BA39 #39BA7F
monochromatic
#5C1C5A #8B2B87 #BA39B5 #CF61CA #DD90DA

Accessibility & contrast

On white

4.84
#BA39B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#BA39B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA39B5
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA39B5#FFFFFF#000000##FFFFFF
##BA39B51.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A66B8
Deuteranopia (green-blind)
#5D78B2
Tritanopia (blue-blind)
#C14A73
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba39b5;
/* rgb */ color: rgb(186, 57, 181);
/* oklch */ color: oklch(57.9% 0.214 329.6);
Tailwind
colors: {
  custom: {
    50: '#d27bcb',
    500: '#ba39b5',
    950: '#000000',
  },
}
SCSS
$custom: #ba39b5;
$custom-light: #d27bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba39b5",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 181
  },
  "hsl": {
    "h": 302.326,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.57874,
    "c": 0.21361,
    "h": 329.6
  },
  "luminance": 0.16702
}

Semantic roles & 50–950 ramp

primary
#BA39B5
secondary
#87C889
accent
#DC514B
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA39B5

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

Preview Lab → · Contrast checker → · Palette generator →

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