#BA3DB9#BA3DB9

#BA3DB9 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.5% C 0.212 H 328.2°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#BA3DB9
RGBrgb(186, 61, 185)
HSLhsl(300, 51%, 48%)
HSVhsv(300, 67%, 73%)
CMYKcmyk(0%, 67.2%, 0.5%, 27.1%)
CIE-LABlab(48.61, 64.46, -40.40)
CIE-LCHlch(48.61, 76.08, 327.92°)
OKLaboklab(58.47% 0.1802 -0.1117)
OKLCHoklch(58.47% 0.212 328.2)
XYZxyz(30.6750, 17.2815, 47.6095)
Luminance0.1728 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3DB9 #3DBA3E
analogous
#7C3DBA #BA3DB9 #BA3D7A
triadic
#BA3DB9 #B9BA3D #3DB9BA
tetradic
#BA3DB9 #BA7C3D #3DBA3E #3D7ABA
square
#BA3DB9 #BA7C3D #3DBA3E #3D7ABA
split-complementary
#BA3DB9 #7ABA3D #3DBA7C
monochromatic
#5E1F5D #8C2E8B #BA3DB9 #CD67CC #DC95DC

Accessibility & contrast

On white

4.71
#BA3DB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#BA3DB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3DB9
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3DB9#FFFFFF#000000##FFFFFF
##BA3DB91.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B69BD
Deuteranopia (green-blind)
#5D79B6
Tritanopia (blue-blind)
#C04E76
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba3db9;
/* rgb */ color: rgb(186, 61, 185);
/* oklch */ color: oklch(58.5% 0.212 328.2);
Tailwind
colors: {
  custom: {
    50: '#d27dce',
    500: '#ba3db9',
    950: '#000000',
  },
}
SCSS
$custom: #ba3db9;
$custom-light: #d27dce;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3db9",
  "rgb": {
    "r": 186,
    "g": 61,
    "b": 185
  },
  "hsl": {
    "h": 300.48,
    "s": 50.607,
    "l": 48.431
  },
  "oklch": {
    "l": 0.58467,
    "c": 0.21196,
    "h": 328.2
  },
  "luminance": 0.17279
}

Semantic roles & 50–950 ramp

primary
#BA3DB9
secondary
#8BC88C
accent
#DA4F4E
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA3DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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