#BA39CA#BA39CA

#BA39CA is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 59.1% C 0.230 H 323.1°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#BA39CA
RGBrgb(186, 57, 202)
HSLhsl(293, 58%, 51%)
HSVhsv(293, 72%, 79%)
CMYKcmyk(7.9%, 71.8%, 0%, 20.8%)
CIE-LABlab(49.05, 68.81, -49.57)
CIE-LCHlch(49.05, 84.80, 324.23°)
OKLaboklab(59.08% 0.1841 -0.1383)
OKLCHoklch(59.08% 0.23 323.1)
XYZxyz(32.3725, 17.6315, 57.5638)
Luminance0.1763 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA39CA #49CA39
analogous
#7139CA #BA39CA #CA3992
triadic
#BA39CA #CABA39 #39CABA
tetradic
#BA39CA #CA7139 #49CA39 #3992CA
square
#BA39CA #CA7139 #49CA39 #3992CA
split-complementary
#BA39CA #92CA39 #39CA71
monochromatic
#631D6C #8F2A9C #BA39CA #CB69D7 #DC9AE4

Accessibility & contrast

On white

4.64
#BA39CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#BA39CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA39CA
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA39CA#FFFFFF#000000##FFFFFF
##BA39CA1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCE
Deuteranopia (green-blind)
#507AC7
Tritanopia (blue-blind)
#BD537E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba39ca;
/* rgb */ color: rgb(186, 57, 202);
/* oklch */ color: oklch(59.1% 0.230 323.1);
Tailwind
colors: {
  custom: {
    50: '#d37cdb',
    500: '#ba39ca',
    950: '#000000',
  },
}
SCSS
$custom: #ba39ca;
$custom-light: #d37cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba39ca",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 202
  },
  "hsl": {
    "h": 293.379,
    "s": 57.769,
    "l": 50.784
  },
  "oklch": {
    "l": 0.59081,
    "c": 0.23026,
    "h": 323.1
  },
  "luminance": 0.1763
}

Semantic roles & 50–950 ramp

primary
#BA39CA
secondary
#96D08F
accent
#E14758
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150A15
muted
#837C83

Preview Lab

Preview with #BA39CA

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

Preview Lab → · Contrast checker → · Palette generator →

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