#BA3DB2#BA3DB2

#BA3DB2 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.1% C 0.206 H 330.6°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#BA3DB2
RGBrgb(186, 61, 178)
HSLhsl(304, 51%, 48%)
HSVhsv(304, 67%, 73%)
CMYKcmyk(0%, 67.2%, 4.3%, 27.1%)
CIE-LABlab(48.25, 63.31, -36.88)
CIE-LCHlch(48.25, 73.27, 329.78°)
OKLaboklab(58.09% 0.1798 -0.1015)
OKLCHoklch(58.09% 0.206 330.6)
XYZxyz(29.9542, 16.9932, 43.8132)
Luminance0.1699 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3DB2 #3DBA45
analogous
#833DBA #BA3DB2 #BA3D73
triadic
#BA3DB2 #B2BA3D #3DB2BA
tetradic
#BA3DB2 #BA833D #3DBA45 #3D73BA
square
#BA3DB2 #BA833D #3DBA45 #3D73BA
split-complementary
#BA3DB2 #73BA3D #3DBA83
monochromatic
#5E1F5A #8C2E86 #BA3DB2 #CD67C7 #DC95D8

Accessibility & contrast

On white

4.77
#BA3DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#BA3DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3DB2
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3DB2#FFFFFF#000000##FFFFFF
##BA3DB21.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3368B5
Deuteranopia (green-blind)
#6179AF
Tritanopia (blue-blind)
#C14B73
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba3db2;
/* rgb */ color: rgb(186, 61, 178);
/* oklch */ color: oklch(58.1% 0.206 330.6);
Tailwind
colors: {
  custom: {
    50: '#d27dc9',
    500: '#ba3db2',
    950: '#000000',
  },
}
SCSS
$custom: #ba3db2;
$custom-light: #d27dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3db2",
  "rgb": {
    "r": 186,
    "g": 61,
    "b": 178
  },
  "hsl": {
    "h": 303.84,
    "s": 50.607,
    "l": 48.431
  },
  "oklch": {
    "l": 0.58089,
    "c": 0.20647,
    "h": 330.6
  },
  "luminance": 0.16991
}

Semantic roles & 50–950 ramp

primary
#BA3DB2
secondary
#8BC88F
accent
#DA574E
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA3DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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