#BA4EA1#BA4EA1

#BA4EA1 is a mid, vivid pink. Relative luminance 0.185; OKLCH L 59.1% C 0.170 H 337.5°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#BA4EA1
RGBrgb(186, 78, 161)
HSLhsl(314, 44%, 52%)
HSVhsv(314, 58%, 73%)
CMYKcmyk(0%, 58.1%, 13.4%, 27.1%)
CIE-LABlab(50.05, 53.46, -24.06)
CIE-LCHlch(50.05, 58.63, 335.77°)
OKLaboklab(59.15% 0.1567 -0.065)
OKLCHoklch(59.15% 0.17 337.5)
XYZxyz(29.4075, 18.4634, 35.7263)
Luminance0.1846 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4EA1 #4EBA67
analogous
#9D4EBA #BA4EA1 #BA4E6B
triadic
#BA4EA1 #A1BA4E #4EA1BA
tetradic
#BA4EA1 #BA9D4E #4EBA67 #4E6BBA
square
#BA4EA1 #BA9D4E #4EBA67 #4E6BBA
split-complementary
#BA4EA1 #6BBA4E #4EBA9D
monochromatic
#662857 #92397D #BA4EA1 #CB7AB8 #DCA6D0

Accessibility & contrast

On white

4.48
#BA4EA1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#BA4EA1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4EA1
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4EA1#FFFFFF#000000##000000
##BA4EA11.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#516DA4
Deuteranopia (green-blind)
#717D9E
Tritanopia (blue-blind)
#C35270
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba4ea1;
/* rgb */ color: rgb(186, 78, 161);
/* oklch */ color: oklch(59.1% 0.170 337.5);
Tailwind
colors: {
  custom: {
    50: '#d185bd',
    500: '#ba4ea1',
    950: '#000000',
  },
}
SCSS
$custom: #ba4ea1;
$custom-light: #d185bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4ea1",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 161
  },
  "hsl": {
    "h": 313.889,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59147,
    "c": 0.16968,
    "h": 337.5
  },
  "luminance": 0.18461
}

Semantic roles & 50–950 ramp

primary
#BA4EA1
secondary
#9ACAA5
accent
#D47254
background
#FDF8FB
surface
#FAF0F6
border
#D3CBD0
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA4EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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