#BA2771#BA2771

#BA2771 is a mid, vivid pink. Relative luminance 0.131; OKLCH L 53.3% C 0.191 H 355.6°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#BA2771
RGBrgb(186, 39, 113)
HSLhsl(330, 65%, 44%)
HSVhsv(330, 79%, 73%)
CMYKcmyk(0%, 79%, 39.2%, 27.1%)
CIE-LABlab(42.89, 62.00, -5.91)
CIE-LCHlch(42.89, 62.28, 354.55°)
OKLaboklab(53.29% 0.1907 -0.0148)
OKLCHoklch(53.29% 0.191 355.6)
XYZxyz(23.9575, 13.0855, 16.8837)
Luminance0.1308 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2771 #27BA70
analogous
#BA27BA #BA2771 #BA2728
triadic
#BA2771 #71BA27 #2771BA
tetradic
#BA2771 #BABA27 #27BA70 #2728BA
square
#BA2771 #BABA27 #27BA70 #2728BA
split-complementary
#BA2771 #28BA27 #27BABA
monochromatic
#551234 #871C52 #BA2771 #D84690 #E379AE

Accessibility & contrast

On white

5.81
#BA2771 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#BA2771 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2771
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2771#FFFFFF#000000##FFFFFF
##BA27711.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475473
Deuteranopia (green-blind)
#6F6F6E
Tritanopia (blue-blind)
#C90F49
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ba2771;
/* rgb */ color: rgb(186, 39, 113);
/* oklch */ color: oklch(53.3% 0.191 355.6);
Tailwind
colors: {
  custom: {
    50: '#d47199',
    500: '#ba2771',
    950: '#000000',
  },
}
SCSS
$custom: #ba2771;
$custom-light: #d47199;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2771",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 329.796,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.53293,
    "c": 0.19125,
    "h": 355.6
  },
  "luminance": 0.13082
}

Semantic roles & 50–950 ramp

primary
#BA2771
secondary
#72CB9E
accent
#E89340
background
#FDF7F9
surface
#FBEDF2
border
#D4C8CC
text
#15090E
muted
#837B7E

Preview Lab

Preview with #BA2771

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

Preview Lab → · Contrast checker → · Palette generator →

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