#BA39C4#BA39C4

#BA39C4 is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.7% C 0.225 H 324.8°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#BA39C4
RGBrgb(186, 57, 196)
HSLhsl(296, 55%, 50%)
HSVhsv(296, 71%, 77%)
CMYKcmyk(5.1%, 70.9%, 0%, 23.1%)
CIE-LABlab(48.70, 67.77, -46.65)
CIE-LCHlch(48.70, 82.28, 325.46°)
OKLaboklab(58.72% 0.1843 -0.1298)
OKLCHoklch(58.72% 0.225 324.8)
XYZxyz(31.6759, 17.3529, 53.8949)
Luminance0.1735 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA39C4 #43C439
analogous
#7439C4 #BA39C4 #C43989
triadic
#BA39C4 #C4BA39 #39C4BA
tetradic
#BA39C4 #C47439 #43C439 #3989C4
square
#BA39C4 #C47439 #43C439 #3989C4
split-complementary
#BA39C4 #89C439 #39C474
monochromatic
#601D65 #8D2B95 #BA39C4 #CB67D3 #DB97E1

Accessibility & contrast

On white

4.70
#BA39C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#BA39C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA39C4
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA39C4#FFFFFF#000000##FFFFFF
##BA39C41.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F6AC8
Deuteranopia (green-blind)
#5479C1
Tritanopia (blue-blind)
#BE507B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba39c4;
/* rgb */ color: rgb(186, 57, 196);
/* oklch */ color: oklch(58.7% 0.225 324.8);
Tailwind
colors: {
  custom: {
    50: '#d37bd6',
    500: '#ba39c4',
    950: '#000000',
  },
}
SCSS
$custom: #ba39c4;
$custom-light: #d37bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba39c4",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 196
  },
  "hsl": {
    "h": 295.683,
    "s": 54.941,
    "l": 49.608
  },
  "oklch": {
    "l": 0.58724,
    "c": 0.22542,
    "h": 324.8
  },
  "luminance": 0.17351
}

Semantic roles & 50–950 ramp

primary
#BA39C4
secondary
#91CC8D
accent
#DE4A54
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BA39C4

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

Preview Lab → · Contrast checker → · Palette generator →

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