#BA2B71#BA2B71

#BA2B71 is a mid, vivid pink. Relative luminance 0.134; OKLCH L 53.6% C 0.187 H 356.0°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#BA2B71
RGBrgb(186, 43, 113)
HSLhsl(331, 62%, 45%)
HSVhsv(331, 77%, 73%)
CMYKcmyk(0%, 76.9%, 39.2%, 27.1%)
CIE-LABlab(43.30, 60.83, -5.30)
CIE-LCHlch(43.30, 61.06, 355.02°)
OKLaboklab(53.59% 0.187 -0.0132)
OKLCHoklch(53.59% 0.187 356)
XYZxyz(24.0959, 13.3622, 16.9299)
Luminance0.1336 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2B71 #2BBA74
analogous
#BA2BB9 #BA2B71 #BA2C2B
triadic
#BA2B71 #71BA2B #2B71BA
tetradic
#BA2B71 #B9BA2B #2BBA74 #2C2BBA
square
#BA2B71 #B9BA2B #2BBA74 #2C2BBA
split-complementary
#BA2B71 #2BBA2C #2BB9BA
monochromatic
#571435 #882053 #BA2B71 #D64C90 #E17EAF

Accessibility & contrast

On white

5.72
#BA2B71 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#BA2B71 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2B71
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2B71#FFFFFF#000000##FFFFFF
##BA2B711.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#495573
Deuteranopia (green-blind)
#70706E
Tritanopia (blue-blind)
#C9174A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ba2b71;
/* rgb */ color: rgb(186, 43, 113);
/* oklch */ color: oklch(53.6% 0.187 356.0);
Tailwind
colors: {
  custom: {
    50: '#d47399',
    500: '#ba2b71',
    950: '#000000',
  },
}
SCSS
$custom: #ba2b71;
$custom-light: #d47399;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2b71",
  "rgb": {
    "r": 186,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 330.629,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.53594,
    "c": 0.18741,
    "h": 356
  },
  "luminance": 0.13359
}

Semantic roles & 50–950 ramp

primary
#BA2B71
secondary
#77CAA1
accent
#E69642
background
#FDF7F9
surface
#FBEDF2
border
#D4C8CC
text
#15090E
muted
#837B7E

Preview Lab

Preview with #BA2B71

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

Preview Lab → · Contrast checker → · Palette generator →

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