#BA4EA5#BA4EA5

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

Color values

HEX#BA4EA5
RGBrgb(186, 78, 165)
HSLhsl(312, 44%, 52%)
HSVhsv(312, 58%, 73%)
CMYKcmyk(0%, 58.1%, 11.3%, 27.1%)
CIE-LABlab(50.22, 54.10, -26.15)
CIE-LCHlch(50.22, 60.09, 334.20°)
OKLaboklab(59.33% 0.1575 -0.0709)
OKLCHoklch(59.33% 0.173 335.7)
XYZxyz(29.7659, 18.6068, 37.6137)
Luminance0.1860 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4EA5 #4EBA63
analogous
#994EBA #BA4EA5 #BA4E6F
triadic
#BA4EA5 #A5BA4E #4EA5BA
tetradic
#BA4EA5 #BA994E #4EBA63 #4E6FBA
square
#BA4EA5 #BA994E #4EBA63 #4E6FBA
split-complementary
#BA4EA5 #6FBA4E #4EBA99
monochromatic
#66285A #923981 #BA4EA5 #CB7ABB #DCA6D2

Accessibility & contrast

On white

4.45
#BA4EA5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#BA4EA5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4EA5
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4EA5#FFFFFF#000000##000000
##BA4EA51.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F6DA8
Deuteranopia (green-blind)
#6F7DA2
Tritanopia (blue-blind)
#C35472
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba4ea5;
/* rgb */ color: rgb(186, 78, 165);
/* oklch */ color: oklch(59.3% 0.173 335.7);
Tailwind
colors: {
  custom: {
    50: '#d185c0',
    500: '#ba4ea5',
    950: '#000000',
  },
}
SCSS
$custom: #ba4ea5;
$custom-light: #d185c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4ea5",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 165
  },
  "hsl": {
    "h": 311.667,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59329,
    "c": 0.17272,
    "h": 335.7
  },
  "luminance": 0.18604
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA4EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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