#BA4DB4#BA4DB4

#BA4DB4 is a mid, vivid purple. Relative luminance 0.190; OKLCH L 59.9% C 0.186 H 329.8°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#BA4DB4
RGBrgb(186, 77, 180)
HSLhsl(303, 44%, 52%)
HSVhsv(303, 59%, 73%)
CMYKcmyk(0%, 58.6%, 3.2%, 27.1%)
CIE-LABlab(50.74, 57.03, -34.14)
CIE-LCHlch(50.74, 66.47, 329.10°)
OKLaboklab(59.93% 0.161 -0.0937)
OKLCHoklch(59.93% 0.186 329.8)
XYZxyz(31.1415, 19.0442, 45.2068)
Luminance0.1904 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4DB4 #4DBA53
analogous
#8A4DBA #BA4DB4 #BA4D7E
triadic
#BA4DB4 #B4BA4D #4DB4BA
tetradic
#BA4DB4 #BA8A4D #4DBA53 #4D7EBA
square
#BA4DB4 #BA8A4D #4DBA53 #4D7EBA
split-complementary
#BA4DB4 #7EBA4D #4DBA8A
monochromatic
#652762 #91388D #BA4DB4 #CB79C7 #DCA5D9

Accessibility & contrast

On white

4.37
#BA4DB4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#BA4DB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4DB4
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4DB4#FFFFFF#000000##000000
##BA4DB41.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#456FB7
Deuteranopia (green-blind)
#697EB1
Tritanopia (blue-blind)
#C05879
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ba4db4;
/* rgb */ color: rgb(186, 77, 180);
/* oklch */ color: oklch(59.9% 0.186 329.8);
Tailwind
colors: {
  custom: {
    50: '#d185cb',
    500: '#ba4db4',
    950: '#000000',
  },
}
SCSS
$custom: #ba4db4;
$custom-light: #d185cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4db4",
  "rgb": {
    "r": 186,
    "g": 77,
    "b": 180
  },
  "hsl": {
    "h": 303.303,
    "s": 44.13,
    "l": 51.569
  },
  "oklch": {
    "l": 0.59929,
    "c": 0.1863,
    "h": 329.8
  },
  "luminance": 0.19042
}

Semantic roles & 50–950 ramp

primary
#BA4DB4
secondary
#99C99C
accent
#D45B54
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA4DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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