#BA2F71#BA2F71

#BA2F71 is a mid, vivid pink. Relative luminance 0.137; OKLCH L 53.9% C 0.183 H 356.4°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#BA2F71
RGBrgb(186, 47, 113)
HSLhsl(332, 60%, 46%)
HSVhsv(332, 75%, 73%)
CMYKcmyk(0%, 74.7%, 39.2%, 27.1%)
CIE-LABlab(43.75, 59.56, -4.63)
CIE-LCHlch(43.75, 59.74, 355.55°)
OKLaboklab(53.92% 0.1829 -0.0114)
OKLCHoklch(53.92% 0.183 356.4)
XYZxyz(24.2485, 13.6674, 16.9807)
Luminance0.1366 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2F71 #2FBA78
analogous
#BA2FB6 #BA2F71 #BA322F
triadic
#BA2F71 #71BA2F #2F71BA
tetradic
#BA2F71 #B6BA2F #2FBA78 #322FBA
square
#BA2F71 #B6BA2F #2FBA78 #322FBA
split-complementary
#BA2F71 #2FBA32 #2FB6BA
monochromatic
#581636 #892353 #BA2F71 #D35390 #E084AF

Accessibility & contrast

On white

5.63
#BA2F71 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#BA2F71 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2F71
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2F71#FFFFFF#000000##FFFFFF
##BA2F711.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B5773
Deuteranopia (green-blind)
#72716E
Tritanopia (blue-blind)
#C91D4C
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ba2f71;
/* rgb */ color: rgb(186, 47, 113);
/* oklch */ color: oklch(53.9% 0.183 356.4);
Tailwind
colors: {
  custom: {
    50: '#d47499',
    500: '#ba2f71',
    950: '#000000',
  },
}
SCSS
$custom: #ba2f71;
$custom-light: #d47499;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2f71",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 331.511,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.53923,
    "c": 0.18328,
    "h": 356.4
  },
  "luminance": 0.13664
}

Semantic roles & 50–950 ramp

primary
#BA2F71
secondary
#7CC9A4
accent
#E39845
background
#FDF7F9
surface
#FBEDF2
border
#D4C8CC
text
#15090E
muted
#837B7E

Preview Lab

Preview with #BA2F71

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

Preview Lab → · Contrast checker → · Palette generator →

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