#BA316D#BA316D

#BA316D is a mid, vivid pink. Relative luminance 0.137; OKLCH L 54.0% C 0.180 H 358.6°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#BA316D
RGBrgb(186, 49, 109)
HSLhsl(334, 58%, 46%)
HSVhsv(334, 74%, 73%)
CMYKcmyk(0%, 73.7%, 41.4%, 27.1%)
CIE-LABlab(43.86, 58.49, -1.99)
CIE-LCHlch(43.86, 58.52, 358.05°)
OKLaboklab(53.96% 0.1795 -0.0045)
OKLCHoklch(53.96% 0.18 358.6)
XYZxyz(24.1101, 13.7429, 15.8480)
Luminance0.1374 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA316D #31BA7E
analogous
#BA31B1 #BA316D #BA3A31
triadic
#BA316D #6DBA31 #316DBA
tetradic
#BA316D #B1BA31 #31BA7E #3A31BA
square
#BA316D #B1BA31 #31BA7E #3A31BA
split-complementary
#BA316D #31BA3A #31B1BA
monochromatic
#591734 #8A2451 #BA316D #D2568C #DF86AD

Accessibility & contrast

On white

5.60
#BA316D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#BA316D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA316D
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA316D#FFFFFF#000000##FFFFFF
##BA316D1.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E576F
Deuteranopia (green-blind)
#73716A
Tritanopia (blue-blind)
#C91E4B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ba316d;
/* rgb */ color: rgb(186, 49, 109);
/* oklch */ color: oklch(54.0% 0.180 358.6);
Tailwind
colors: {
  custom: {
    50: '#d47596',
    500: '#ba316d',
    950: '#000000',
  },
}
SCSS
$custom: #ba316d;
$custom-light: #d47596;
$custom-dark: #000000;
JSON
{
  "hex": "#ba316d",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 109
  },
  "hsl": {
    "h": 333.723,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.53961,
    "c": 0.17959,
    "h": 358.6
  },
  "luminance": 0.1374
}

Semantic roles & 50–950 ramp

primary
#BA316D
secondary
#7EC9A8
accent
#E29E46
background
#FDF7F9
surface
#FBEDF2
border
#D4C8CC
text
#15090D
muted
#837B7E

Preview Lab

Preview with #BA316D

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

Preview Lab → · Contrast checker → · Palette generator →

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