#BA4EAC#BA4EAC

#BA4EAC is a mid, vivid purple. Relative luminance 0.189; OKLCH L 59.7% C 0.178 H 332.9°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#BA4EAC
RGBrgb(186, 78, 172)
HSLhsl(308, 44%, 52%)
HSVhsv(308, 58%, 73%)
CMYKcmyk(0%, 58.1%, 7.5%, 27.1%)
CIE-LABlab(50.53, 55.23, -29.78)
CIE-LCHlch(50.53, 62.75, 331.67°)
OKLaboklab(59.66% 0.1586 -0.0813)
OKLCHoklch(59.66% 0.178 332.9)
XYZxyz(30.4205, 18.8686, 41.0615)
Luminance0.1887 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4EAC #4EBA5C
analogous
#924EBA #BA4EAC #BA4E76
triadic
#BA4EAC #ACBA4E #4EACBA
tetradic
#BA4EAC #BA924E #4EBA5C #4E76BA
square
#BA4EAC #BA924E #4EBA5C #4E76BA
split-complementary
#BA4EAC #76BA4E #4EBA92
monochromatic
#66285E #923986 #BA4EAC #CB7AC1 #DCA6D5

Accessibility & contrast

On white

4.40
#BA4EAC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA4EAC#FFFFFF#000000##000000
##BA4EAC1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B6EAF
Deuteranopia (green-blind)
#6D7EA9
Tritanopia (blue-blind)
#C25676
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba4eac;
/* rgb */ color: rgb(186, 78, 172);
/* oklch */ color: oklch(59.7% 0.178 332.9);
Tailwind
colors: {
  custom: {
    50: '#d185c5',
    500: '#ba4eac',
    950: '#000000',
  },
}
SCSS
$custom: #ba4eac;
$custom-light: #d185c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4eac",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 172
  },
  "hsl": {
    "h": 307.778,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59657,
    "c": 0.17825,
    "h": 332.9
  },
  "luminance": 0.18866
}

Semantic roles & 50–950 ramp

primary
#BA4EAC
secondary
#9ACAA0
accent
#D46554
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA4EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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