#BA4EA6#BA4EA6

#BA4EA6 is a mid, vivid pink. Relative luminance 0.186; OKLCH L 59.4% C 0.173 H 335.3°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#BA4EA6
RGBrgb(186, 78, 166)
HSLhsl(311, 44%, 52%)
HSVhsv(311, 58%, 73%)
CMYKcmyk(0%, 58.1%, 10.8%, 27.1%)
CIE-LABlab(50.27, 54.26, -26.67)
CIE-LCHlch(50.27, 60.46, 333.82°)
OKLaboklab(59.38% 0.1577 -0.0724)
OKLCHoklch(59.38% 0.174 335.3)
XYZxyz(29.8572, 18.6433, 38.0950)
Luminance0.1864 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4EA6 #4EBA62
analogous
#984EBA #BA4EA6 #BA4E70
triadic
#BA4EA6 #A6BA4E #4EA6BA
tetradic
#BA4EA6 #BA984E #4EBA62 #4E70BA
square
#BA4EA6 #BA984E #4EBA62 #4E70BA
split-complementary
#BA4EA6 #70BA4E #4EBA98
monochromatic
#66285A #923981 #BA4EA6 #CB7ABC #DCA6D2

Accessibility & contrast

On white

4.44
#BA4EA6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#BA4EA6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4EA6
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4EA6#FFFFFF#000000##000000
##BA4EA61.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E6DA9
Deuteranopia (green-blind)
#6F7DA3
Tritanopia (blue-blind)
#C25473
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba4ea6;
/* rgb */ color: rgb(186, 78, 166);
/* oklch */ color: oklch(59.4% 0.173 335.3);
Tailwind
colors: {
  custom: {
    50: '#d185c0',
    500: '#ba4ea6',
    950: '#000000',
  },
}
SCSS
$custom: #ba4ea6;
$custom-light: #d185c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4ea6",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 166
  },
  "hsl": {
    "h": 311.111,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59375,
    "c": 0.1735,
    "h": 335.3
  },
  "luminance": 0.18641
}

Semantic roles & 50–950 ramp

primary
#BA4EA6
secondary
#9ACAA3
accent
#D46C54
background
#FDF8FB
surface
#FAF0F7
border
#D3CBD0
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA4EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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