#BA4CAB#BA4CAB

#BA4CAB is a mid, vivid purple. Relative luminance 0.185; OKLCH L 59.4% C 0.180 H 333.2°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#BA4CAB
RGBrgb(186, 76, 171)
HSLhsl(308, 44%, 51%)
HSVhsv(308, 59%, 73%)
CMYKcmyk(0%, 59.1%, 8.1%, 27.1%)
CIE-LABlab(50.16, 55.97, -29.78)
CIE-LCHlch(50.16, 63.40, 331.98°)
OKLaboklab(59.37% 0.1611 -0.0812)
OKLCHoklch(59.37% 0.18 333.2)
XYZxyz(30.1849, 18.5505, 40.5110)
Luminance0.1855 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4CAB #4CBA5B
analogous
#924CBA #BA4CAB #BA4C74
triadic
#BA4CAB #ABBA4C #4CABBA
tetradic
#BA4CAB #BA924C #4CBA5B #4C74BA
square
#BA4CAB #BA924C #4CBA5B #4C74BA
split-complementary
#BA4CAB #74BA4C #4CBA92
monochromatic
#65275C #913885 #BA4CAB #CB78C0 #DCA4D4

Accessibility & contrast

On white

4.46
#BA4CAB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#BA4CAB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4CAB
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4CAB#FFFFFF#000000##000000
##BA4CAB1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#496DAE
Deuteranopia (green-blind)
#6C7DA8
Tritanopia (blue-blind)
#C25474
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba4cab;
/* rgb */ color: rgb(186, 76, 171);
/* oklch */ color: oklch(59.4% 0.180 333.2);
Tailwind
colors: {
  custom: {
    50: '#d184c4',
    500: '#ba4cab',
    950: '#000000',
  },
}
SCSS
$custom: #ba4cab;
$custom-light: #d184c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4cab",
  "rgb": {
    "r": 186,
    "g": 76,
    "b": 171
  },
  "hsl": {
    "h": 308.182,
    "s": 44.355,
    "l": 51.373
  },
  "oklch": {
    "l": 0.59366,
    "c": 0.18044,
    "h": 333.2
  },
  "luminance": 0.18548
}

Semantic roles & 50–950 ramp

primary
#BA4CAB
secondary
#99C99F
accent
#D46554
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA4CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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