#BA2871#BA2871

#BA2871 is a mid, vivid pink. Relative luminance 0.131; OKLCH L 53.4% C 0.190 H 355.7°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#BA2871
RGBrgb(186, 40, 113)
HSLhsl(330, 65%, 44%)
HSVhsv(330, 78%, 73%)
CMYKcmyk(0%, 78.5%, 39.2%, 27.1%)
CIE-LABlab(42.99, 61.72, -5.76)
CIE-LCHlch(42.99, 61.98, 354.67°)
OKLaboklab(53.37% 0.1898 -0.0144)
OKLCHoklch(53.37% 0.19 355.7)
XYZxyz(23.9908, 13.1520, 16.8948)
Luminance0.1315 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2871 #28BA71
analogous
#BA28BA #BA2871 #BA2828
triadic
#BA2871 #71BA28 #2871BA
tetradic
#BA2871 #BABA28 #28BA71 #2828BA
square
#BA2871 #BABA28 #28BA71 #2828BA
split-complementary
#BA2871 #28BA28 #28BABA
monochromatic
#551234 #881D52 #BA2871 #D84890 #E27AAE

Accessibility & contrast

On white

5.79
#BA2871 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#BA2871 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2871
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2871#FFFFFF#000000##FFFFFF
##BA28711.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475473
Deuteranopia (green-blind)
#706F6E
Tritanopia (blue-blind)
#C91149
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ba2871;
/* rgb */ color: rgb(186, 40, 113);
/* oklch */ color: oklch(53.4% 0.190 355.7);
Tailwind
colors: {
  custom: {
    50: '#d47199',
    500: '#ba2871',
    950: '#000000',
  },
}
SCSS
$custom: #ba2871;
$custom-light: #d47199;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2871",
  "rgb": {
    "r": 186,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 330,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.53366,
    "c": 0.19033,
    "h": 355.7
  },
  "luminance": 0.13149
}

Semantic roles & 50–950 ramp

primary
#BA2871
secondary
#73CA9F
accent
#E89440
background
#FDF7F9
surface
#FBEDF2
border
#D4C8CC
text
#15090E
muted
#837B7E

Preview Lab

Preview with #BA2871

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

Preview Lab → · Contrast checker → · Palette generator →

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