#BA4EAB#BA4EAB

#BA4EAB is a mid, vivid purple. Relative luminance 0.188; OKLCH L 59.6% C 0.177 H 333.3°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#BA4EAB
RGBrgb(186, 78, 171)
HSLhsl(308, 44%, 52%)
HSVhsv(308, 58%, 73%)
CMYKcmyk(0%, 58.1%, 8.1%, 27.1%)
CIE-LABlab(50.49, 55.07, -29.27)
CIE-LCHlch(50.49, 62.36, 332.01°)
OKLaboklab(59.61% 0.1585 -0.0798)
OKLCHoklch(59.61% 0.177 333.3)
XYZxyz(30.3248, 18.8304, 40.5576)
Luminance0.1883 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4EAB #4EBA5D
analogous
#934EBA #BA4EAB #BA4E75
triadic
#BA4EAB #ABBA4E #4EABBA
tetradic
#BA4EAB #BA934E #4EBA5D #4E75BA
square
#BA4EAB #BA934E #4EBA5D #4E75BA
split-complementary
#BA4EAB #75BA4E #4EBA93
monochromatic
#66285D #923986 #BA4EAB #CB7AC0 #DCA6D5

Accessibility & contrast

On white

4.41
#BA4EAB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#BA4EAB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4EAB
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4EAB#FFFFFF#000000##000000
##BA4EAB1.004.414.774.77
#FFFFFF4.411.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C6EAE
Deuteranopia (green-blind)
#6D7EA8
Tritanopia (blue-blind)
#C25675
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba4eab;
/* rgb */ color: rgb(186, 78, 171);
/* oklch */ color: oklch(59.6% 0.177 333.3);
Tailwind
colors: {
  custom: {
    50: '#d185c4',
    500: '#ba4eab',
    950: '#000000',
  },
}
SCSS
$custom: #ba4eab;
$custom-light: #d185c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4eab",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 171
  },
  "hsl": {
    "h": 308.333,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59609,
    "c": 0.17745,
    "h": 333.3
  },
  "luminance": 0.18828
}

Semantic roles & 50–950 ramp

primary
#BA4EAB
secondary
#9ACAA1
accent
#D46654
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA4EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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