#BA4DB2#BA4DB2

#BA4DB2 is a mid, vivid purple. Relative luminance 0.190; OKLCH L 59.8% C 0.185 H 330.5°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#BA4DB2
RGBrgb(186, 77, 178)
HSLhsl(304, 44%, 52%)
HSVhsv(304, 59%, 73%)
CMYKcmyk(0%, 58.6%, 4.3%, 27.1%)
CIE-LABlab(50.64, 56.69, -33.12)
CIE-LCHlch(50.64, 65.65, 329.71°)
OKLaboklab(59.83% 0.1608 -0.0908)
OKLCHoklch(59.83% 0.185 330.5)
XYZxyz(30.9393, 18.9633, 44.1416)
Luminance0.1896 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4DB2 #4DBA55
analogous
#8C4DBA #BA4DB2 #BA4D7C
triadic
#BA4DB2 #B2BA4D #4DB2BA
tetradic
#BA4DB2 #BA8C4D #4DBA55 #4D7CBA
square
#BA4DB2 #BA8C4D #4DBA55 #4D7CBA
split-complementary
#BA4DB2 #7CBA4D #4DBA8C
monochromatic
#652761 #91388B #BA4DB2 #CB79C5 #DCA5D8

Accessibility & contrast

On white

4.38
#BA4DB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#BA4DB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4DB2
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4DB2#FFFFFF#000000##000000
##BA4DB21.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#466FB5
Deuteranopia (green-blind)
#6A7EAF
Tritanopia (blue-blind)
#C15778
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ba4db2;
/* rgb */ color: rgb(186, 77, 178);
/* oklch */ color: oklch(59.8% 0.185 330.5);
Tailwind
colors: {
  custom: {
    50: '#d185c9',
    500: '#ba4db2',
    950: '#000000',
  },
}
SCSS
$custom: #ba4db2;
$custom-light: #d185c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4db2",
  "rgb": {
    "r": 186,
    "g": 77,
    "b": 178
  },
  "hsl": {
    "h": 304.404,
    "s": 44.13,
    "l": 51.569
  },
  "oklch": {
    "l": 0.59829,
    "c": 0.18464,
    "h": 330.5
  },
  "luminance": 0.18961
}

Semantic roles & 50–950 ramp

primary
#BA4DB2
secondary
#99C99D
accent
#D45D54
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA4DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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