#BA4EA4#BA4EA4

#BA4EA4 is a mid, vivid pink. Relative luminance 0.186; OKLCH L 59.3% C 0.172 H 336.2°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#BA4EA4
RGBrgb(186, 78, 164)
HSLhsl(312, 44%, 52%)
HSVhsv(312, 58%, 73%)
CMYKcmyk(0%, 58.1%, 11.8%, 27.1%)
CIE-LABlab(50.18, 53.94, -25.63)
CIE-LCHlch(50.18, 59.72, 334.58°)
OKLaboklab(59.28% 0.1573 -0.0695)
OKLCHoklch(59.28% 0.172 336.2)
XYZxyz(29.6752, 18.5705, 37.1363)
Luminance0.1857 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4EA4 #4EBA64
analogous
#9A4EBA #BA4EA4 #BA4E6E
triadic
#BA4EA4 #A4BA4E #4EA4BA
tetradic
#BA4EA4 #BA9A4E #4EBA64 #4E6EBA
square
#BA4EA4 #BA9A4E #4EBA64 #4E6EBA
split-complementary
#BA4EA4 #6EBA4E #4EBA9A
monochromatic
#662859 #923980 #BA4EA4 #CB7ABB #DCA6D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA4EA4#FFFFFF#000000##000000
##BA4EA41.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)
#4F6DA7
Deuteranopia (green-blind)
#707DA1
Tritanopia (blue-blind)
#C35372
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba4ea4;
/* rgb */ color: rgb(186, 78, 164);
/* oklch */ color: oklch(59.3% 0.172 336.2);
Tailwind
colors: {
  custom: {
    50: '#d185bf',
    500: '#ba4ea4',
    950: '#000000',
  },
}
SCSS
$custom: #ba4ea4;
$custom-light: #d185bf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4ea4",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 164
  },
  "hsl": {
    "h": 312.222,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59283,
    "c": 0.17195,
    "h": 336.2
  },
  "luminance": 0.18568
}

Semantic roles & 50–950 ramp

primary
#BA4EA4
secondary
#9ACAA4
accent
#D46E54
background
#FDF8FB
surface
#FAF0F7
border
#D3CBD0
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA4EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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