#BA316A#BA316A

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

Color values

HEX#BA316A
RGBrgb(186, 49, 106)
HSLhsl(335, 58%, 46%)
HSVhsv(335, 74%, 73%)
CMYKcmyk(0%, 73.7%, 43%, 27.1%)
CIE-LABlab(43.77, 58.19, -0.27)
CIE-LCHlch(43.77, 58.19, 359.73°)
OKLaboklab(53.86% 0.1785 0)
OKLCHoklch(53.86% 0.179 0)
XYZxyz(23.9513, 13.6794, 15.0120)
Luminance0.1368 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA316A #31BA81
analogous
#BA31AE #BA316A #BA3C31
triadic
#BA316A #6ABA31 #316ABA
tetradic
#BA316A #AEBA31 #31BA81 #3C31BA
square
#BA316A #AEBA31 #31BA81 #3C31BA
split-complementary
#BA316A #31BA3C #31AEBA
monochromatic
#591733 #8A244E #BA316A #D2568A #DF86AB

Accessibility & contrast

On white

5.62
#BA316A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#BA316A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA316A
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA316A#FFFFFF#000000##FFFFFF
##BA316A1.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F576B
Deuteranopia (green-blind)
#747167
Tritanopia (blue-blind)
#CA1C49
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ba316a;
/* rgb */ color: rgb(186, 49, 106);
/* oklch */ color: oklch(53.9% 0.179 360.0);
Tailwind
colors: {
  custom: {
    50: '#d47594',
    500: '#ba316a',
    950: '#000000',
  },
}
SCSS
$custom: #ba316a;
$custom-light: #d47594;
$custom-dark: #000000;
JSON
{
  "hex": "#ba316a",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 106
  },
  "hsl": {
    "h": 335.036,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.53863,
    "c": 0.17854,
    "h": 360
  },
  "luminance": 0.13676
}

Semantic roles & 50–950 ramp

primary
#BA316A
secondary
#7EC9AA
accent
#E2A146
background
#FDF7F9
surface
#FBEDF1
border
#D4C8CB
text
#15090D
muted
#837B7E

Preview Lab

Preview with #BA316A

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

Preview Lab → · Contrast checker → · Palette generator →

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