#BA3DB7#BA3DB7

#BA3DB7 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.4% C 0.210 H 328.9°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#BA3DB7
RGBrgb(186, 61, 183)
HSLhsl(301, 51%, 48%)
HSVhsv(301, 67%, 73%)
CMYKcmyk(0%, 67.2%, 1.6%, 27.1%)
CIE-LABlab(48.51, 64.13, -39.40)
CIE-LCHlch(48.51, 75.27, 328.44°)
OKLaboklab(58.36% 0.1801 -0.1088)
OKLCHoklch(58.36% 0.21 328.9)
XYZxyz(30.4654, 17.1977, 46.5054)
Luminance0.1719 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3DB7 #3DBA40
analogous
#7E3DBA #BA3DB7 #BA3D78
triadic
#BA3DB7 #B7BA3D #3DB7BA
tetradic
#BA3DB7 #BA7E3D #3DBA40 #3D78BA
square
#BA3DB7 #BA7E3D #3DBA40 #3D78BA
split-complementary
#BA3DB7 #78BA3D #3DBA7E
monochromatic
#5E1F5C #8C2E8A #BA3DB7 #CD67CB #DC95DB

Accessibility & contrast

On white

4.73
#BA3DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#BA3DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3DB7
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3DB7#FFFFFF#000000##FFFFFF
##BA3DB71.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E69BB
Deuteranopia (green-blind)
#5E79B4
Tritanopia (blue-blind)
#C04D75
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba3db7;
/* rgb */ color: rgb(186, 61, 183);
/* oklch */ color: oklch(58.4% 0.210 328.9);
Tailwind
colors: {
  custom: {
    50: '#d27dcd',
    500: '#ba3db7',
    950: '#000000',
  },
}
SCSS
$custom: #ba3db7;
$custom-light: #d27dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3db7",
  "rgb": {
    "r": 186,
    "g": 61,
    "b": 183
  },
  "hsl": {
    "h": 301.44,
    "s": 50.607,
    "l": 48.431
  },
  "oklch": {
    "l": 0.58357,
    "c": 0.21038,
    "h": 328.9
  },
  "luminance": 0.17195
}

Semantic roles & 50–950 ramp

primary
#BA3DB7
secondary
#8BC88D
accent
#DA514E
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA3DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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