#BA39B3#BA39B3

#BA39B3 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.8% C 0.212 H 330.2°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#BA39B3
RGBrgb(186, 57, 179)
HSLhsl(303, 53%, 48%)
HSVhsv(303, 69%, 73%)
CMYKcmyk(0%, 69.4%, 3.8%, 27.1%)
CIE-LABlab(47.78, 64.95, -38.20)
CIE-LCHlch(47.78, 75.35, 329.53°)
OKLaboklab(57.77% 0.1841 -0.1053)
OKLCHoklch(57.77% 0.212 330.2)
XYZxyz(29.8494, 16.6223, 44.2754)
Luminance0.1662 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA39B3 #39BA40
analogous
#8139BA #BA39B3 #BA3972
triadic
#BA39B3 #B3BA39 #39B3BA
tetradic
#BA39B3 #BA8139 #39BA40 #3972BA
square
#BA39B3 #BA8139 #39BA40 #3972BA
split-complementary
#BA39B3 #72BA39 #39BA81
monochromatic
#5C1C59 #8B2B86 #BA39B3 #CF61C9 #DD90D9

Accessibility & contrast

On white

4.86
#BA39B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#BA39B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA39B3
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA39B3#FFFFFF#000000##FFFFFF
##BA39B31.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C66B6
Deuteranopia (green-blind)
#5E78B0
Tritanopia (blue-blind)
#C14972
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba39b3;
/* rgb */ color: rgb(186, 57, 179);
/* oklch */ color: oklch(57.8% 0.212 330.2);
Tailwind
colors: {
  custom: {
    50: '#d27bca',
    500: '#ba39b3',
    950: '#000000',
  },
}
SCSS
$custom: #ba39b3;
$custom-light: #d27bca;
$custom-dark: #000000;
JSON
{
  "hex": "#ba39b3",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 179
  },
  "hsl": {
    "h": 303.256,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.57766,
    "c": 0.21207,
    "h": 330.2
  },
  "luminance": 0.1662
}

Semantic roles & 50–950 ramp

primary
#BA39B3
secondary
#87C88A
accent
#DC534B
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA39B3

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

Preview Lab → · Contrast checker → · Palette generator →

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