#BA4EA7#BA4EA7

#BA4EA7 is a mid, vivid pink. Relative luminance 0.187; OKLCH L 59.4% C 0.174 H 334.9°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#BA4EA7
RGBrgb(186, 78, 167)
HSLhsl(311, 44%, 52%)
HSVhsv(311, 58%, 73%)
CMYKcmyk(0%, 58.1%, 10.2%, 27.1%)
CIE-LABlab(50.31, 54.42, -27.20)
CIE-LCHlch(50.31, 60.83, 333.45°)
OKLaboklab(59.42% 0.1578 -0.0739)
OKLCHoklch(59.42% 0.174 334.9)
XYZxyz(29.9493, 18.6802, 38.5800)
Luminance0.1868 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4EA7 #4EBA61
analogous
#974EBA #BA4EA7 #BA4E71
triadic
#BA4EA7 #A7BA4E #4EA7BA
tetradic
#BA4EA7 #BA974E #4EBA61 #4E71BA
square
#BA4EA7 #BA974E #4EBA61 #4E71BA
split-complementary
#BA4EA7 #71BA4E #4EBA97
monochromatic
#66285B #923982 #BA4EA7 #CB7ABD #DCA6D3

Accessibility & contrast

On white

4.43
#BA4EA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#BA4EA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4EA7
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4EA7#FFFFFF#000000##000000
##BA4EA71.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba4ea7;
/* rgb */ color: rgb(186, 78, 167);
/* oklch */ color: oklch(59.4% 0.174 334.9);
Tailwind
colors: {
  custom: {
    50: '#d185c1',
    500: '#ba4ea7',
    950: '#000000',
  },
}
SCSS
$custom: #ba4ea7;
$custom-light: #d185c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4ea7",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 167
  },
  "hsl": {
    "h": 310.556,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59421,
    "c": 0.17427,
    "h": 334.9
  },
  "luminance": 0.18678
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA4EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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