#BA3871#BA3871

#BA3871 is a mid, vivid pink. Relative luminance 0.145; OKLCH L 54.8% C 0.173 H 357.7°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#BA3871
RGBrgb(186, 56, 113)
HSLhsl(334, 54%, 47%)
HSVhsv(334, 70%, 73%)
CMYKcmyk(0%, 69.9%, 39.2%, 27.1%)
CIE-LABlab(44.89, 56.39, -2.95)
CIE-LCHlch(44.89, 56.46, 357.00°)
OKLaboklab(54.76% 0.1728 -0.007)
OKLCHoklch(54.76% 0.173 357.7)
XYZxyz(24.6462, 14.4627, 17.1133)
Luminance0.1446 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3871 #38BA81
analogous
#BA38B2 #BA3871 #BA4038
triadic
#BA3871 #71BA38 #3871BA
tetradic
#BA3871 #B2BA38 #38BA81 #4038BA
square
#BA3871 #B2BA38 #38BA81 #4038BA
split-complementary
#BA3871 #38BA40 #38B2BA
monochromatic
#5C1C38 #8B2A54 #BA3871 #CF6091 #DD8FB1

Accessibility & contrast

On white

5.40
#BA3871 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#BA3871 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3871
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3871#FFFFFF#000000##FFFFFF
##BA38711.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#515B73
Deuteranopia (green-blind)
#75736E
Tritanopia (blue-blind)
#C92A50
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba3871;
/* rgb */ color: rgb(186, 56, 113);
/* oklch */ color: oklch(54.8% 0.173 357.7);
Tailwind
colors: {
  custom: {
    50: '#d37899',
    500: '#ba3871',
    950: '#000000',
  },
}
SCSS
$custom: #ba3871;
$custom-light: #d37899;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3871",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 113
  },
  "hsl": {
    "h": 333.692,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.54759,
    "c": 0.17296,
    "h": 357.7
  },
  "luminance": 0.1446
}

Semantic roles & 50–950 ramp

primary
#BA3871
secondary
#86C8AB
accent
#DD9D4B
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#150A0E
muted
#837C7E

Preview Lab

Preview with #BA3871

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

Preview Lab → · Contrast checker → · Palette generator →

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