#BA39D2#BA39D2

#BA39D2 is a mid, highly saturated purple. Relative luminance 0.180; OKLCH L 59.6% C 0.237 H 320.8°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#BA39D2
RGBrgb(186, 57, 210)
HSLhsl(291, 63%, 52%)
HSVhsv(291, 73%, 82%)
CMYKcmyk(11.4%, 72.9%, 0%, 17.6%)
CIE-LABlab(49.52, 70.22, -53.41)
CIE-LCHlch(49.52, 88.23, 322.74°)
OKLaboklab(59.57% 0.1836 -0.1496)
OKLCHoklch(59.57% 0.237 320.8)
XYZxyz(33.3443, 18.0203, 62.6822)
Luminance0.1802 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA39D2 #51D239
analogous
#6D39D2 #BA39D2 #D2399E
triadic
#BA39D2 #D2BA39 #39D2BA
tetradic
#BA39D2 #D26D39 #51D239 #399ED2
square
#BA39D2 #D26D39 #51D239 #399ED2
split-complementary
#BA39D2 #9ED239 #39D26D
monochromatic
#681B76 #9326A8 #BA39D2 #CB6BDD #DD9DE9

Accessibility & contrast

On white

4.56
#BA39D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#BA39D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA39D2
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA39D2#FFFFFF#000000##000000
##BA39D21.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#006DD6
Deuteranopia (green-blind)
#4A7ACE
Tritanopia (blue-blind)
#BB5783
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba39d2;
/* rgb */ color: rgb(186, 57, 210);
/* oklch */ color: oklch(59.6% 0.237 320.8);
Tailwind
colors: {
  custom: {
    50: '#d37ce0',
    500: '#ba39d2',
    950: '#000000',
  },
}
SCSS
$custom: #ba39d2;
$custom-light: #d37ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba39d2",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 210
  },
  "hsl": {
    "h": 290.588,
    "s": 62.963,
    "l": 52.353
  },
  "oklch": {
    "l": 0.59572,
    "c": 0.2368,
    "h": 320.8
  },
  "luminance": 0.18019
}

Semantic roles & 50–950 ramp

primary
#BA39D2
secondary
#9DD592
accent
#E6425C
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150A15
muted
#837C83

Preview Lab

Preview with #BA39D2

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

Preview Lab → · Contrast checker → · Palette generator →

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