#BA316B#BA316B

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

Color values

HEX#BA316B
RGBrgb(186, 49, 107)
HSLhsl(335, 58%, 46%)
HSVhsv(335, 74%, 73%)
CMYKcmyk(0%, 73.7%, 42.5%, 27.1%)
CIE-LABlab(43.80, 58.29, -0.85)
CIE-LCHlch(43.80, 58.29, 359.17°)
OKLaboklab(53.9% 0.1789 -0.0015)
OKLCHoklch(53.9% 0.179 359.5)
XYZxyz(24.0036, 13.7003, 15.2875)
Luminance0.1370 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA316B #31BA80
analogous
#BA31AF #BA316B #BA3C31
triadic
#BA316B #6BBA31 #316BBA
tetradic
#BA316B #AFBA31 #31BA80 #3C31BA
square
#BA316B #AFBA31 #31BA80 #3C31BA
split-complementary
#BA316B #31BA3C #31AFBA
monochromatic
#591733 #8A244F #BA316B #D2568B #DF86AC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA316B#FFFFFF#000000##FFFFFF
##BA316B1.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)
#4E576C
Deuteranopia (green-blind)
#747168
Tritanopia (blue-blind)
#CA1C4A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ba316b;
/* rgb */ color: rgb(186, 49, 107);
/* oklch */ color: oklch(53.9% 0.179 359.5);
Tailwind
colors: {
  custom: {
    50: '#d47595',
    500: '#ba316b',
    950: '#000000',
  },
}
SCSS
$custom: #ba316b;
$custom-light: #d47595;
$custom-dark: #000000;
JSON
{
  "hex": "#ba316b",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 107
  },
  "hsl": {
    "h": 334.599,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.53895,
    "c": 0.17888,
    "h": 359.5
  },
  "luminance": 0.13697
}

Semantic roles & 50–950 ramp

primary
#BA316B
secondary
#7EC9A9
accent
#E2A046
background
#FDF7F9
surface
#FBEDF1
border
#D4C8CB
text
#15090D
muted
#837B7E

Preview Lab

Preview with #BA316B

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

Preview Lab → · Contrast checker → · Palette generator →

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