#BA4EA2#BA4EA2

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

Color values

HEX#BA4EA2
RGBrgb(186, 78, 162)
HSLhsl(313, 44%, 52%)
HSVhsv(313, 58%, 73%)
CMYKcmyk(0%, 58.1%, 12.9%, 27.1%)
CIE-LABlab(50.10, 53.62, -24.58)
CIE-LCHlch(50.10, 58.99, 335.37°)
OKLaboklab(59.19% 0.1569 -0.0665)
OKLCHoklch(59.19% 0.17 337)
XYZxyz(29.4960, 18.4988, 36.1925)
Luminance0.1850 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4EA2 #4EBA66
analogous
#9C4EBA #BA4EA2 #BA4E6C
triadic
#BA4EA2 #A2BA4E #4EA2BA
tetradic
#BA4EA2 #BA9C4E #4EBA66 #4E6CBA
square
#BA4EA2 #BA9C4E #4EBA66 #4E6CBA
split-complementary
#BA4EA2 #6CBA4E #4EBA9C
monochromatic
#662858 #92397E #BA4EA2 #CB7AB9 #DCA6D0

Accessibility & contrast

On white

4.47
#BA4EA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#BA4EA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4EA2
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4EA2#FFFFFF#000000##000000
##BA4EA21.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#506DA5
Deuteranopia (green-blind)
#707D9F
Tritanopia (blue-blind)
#C35371
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba4ea2;
/* rgb */ color: rgb(186, 78, 162);
/* oklch */ color: oklch(59.2% 0.170 337.0);
Tailwind
colors: {
  custom: {
    50: '#d185bd',
    500: '#ba4ea2',
    950: '#000000',
  },
}
SCSS
$custom: #ba4ea2;
$custom-light: #d185bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4ea2",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 313.333,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59192,
    "c": 0.17043,
    "h": 337
  },
  "luminance": 0.18497
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA4EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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