#BA2C87#BA2C87

#BA2C87 is a mid, vivid pink. Relative luminance 0.140; OKLCH L 54.5% C 0.197 H 346.4°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#BA2C87
RGBrgb(186, 44, 135)
HSLhsl(322, 62%, 45%)
HSVhsv(322, 76%, 73%)
CMYKcmyk(0%, 76.3%, 27.4%, 27.1%)
CIE-LABlab(44.22, 63.01, -17.44)
CIE-LCHlch(44.22, 65.38, 344.53°)
OKLaboklab(54.53% 0.1916 -0.0462)
OKLCHoklch(54.53% 0.197 346.4)
XYZxyz(25.5248, 13.9926, 24.2736)
Luminance0.1399 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2C87 #2CBA5F
analogous
#A62CBA #BA2C87 #BA2C40
triadic
#BA2C87 #87BA2C #2C87BA
tetradic
#BA2C87 #BAA62C #2CBA5F #2C40BA
square
#BA2C87 #BAA62C #2CBA5F #2C40BA
split-complementary
#BA2C87 #40BA2C #2CBAA6
monochromatic
#57153F #892063 #BA2C87 #D54EA5 #E180BE

Accessibility & contrast

On white

5.53
#BA2C87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#BA2C87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2C87
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2C87#FFFFFF#000000##FFFFFF
##BA2C871.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405989
Deuteranopia (green-blind)
#6B7184
Tritanopia (blue-blind)
#C72756
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba2c87;
/* rgb */ color: rgb(186, 44, 135);
/* oklch */ color: oklch(54.5% 0.197 346.4);
Tailwind
colors: {
  custom: {
    50: '#d374aa',
    500: '#ba2c87',
    950: '#000000',
  },
}
SCSS
$custom: #ba2c87;
$custom-light: #d374aa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2c87",
  "rgb": {
    "r": 186,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 321.549,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54529,
    "c": 0.19706,
    "h": 346.4
  },
  "luminance": 0.1399
}

Semantic roles & 50–950 ramp

primary
#BA2C87
secondary
#78CA95
accent
#E57D43
background
#FDF7FA
surface
#FBEDF4
border
#D4C8CE
text
#150910
muted
#837B7F

Preview Lab

Preview with #BA2C87

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

Preview Lab → · Contrast checker → · Palette generator →

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