#BA316C#BA316C

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

Color values

HEX#BA316C
RGBrgb(186, 49, 108)
HSLhsl(334, 58%, 46%)
HSVhsv(334, 74%, 73%)
CMYKcmyk(0%, 73.7%, 41.9%, 27.1%)
CIE-LABlab(43.83, 58.39, -1.42)
CIE-LCHlch(43.83, 58.40, 358.61°)
OKLaboklab(53.93% 0.1792 -0.003)
OKLCHoklch(53.93% 0.179 359)
XYZxyz(24.0565, 13.7215, 15.5662)
Luminance0.1372 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA316C #31BA7F
analogous
#BA31B0 #BA316C #BA3B31
triadic
#BA316C #6CBA31 #316CBA
tetradic
#BA316C #B0BA31 #31BA7F #3B31BA
square
#BA316C #B0BA31 #31BA7F #3B31BA
split-complementary
#BA316C #31BA3B #31B0BA
monochromatic
#591734 #8A2450 #BA316C #D2568B #DF86AD

Accessibility & contrast

On white

5.61
#BA316C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA316C
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA316C#FFFFFF#000000##FFFFFF
##BA316C1.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E576D
Deuteranopia (green-blind)
#737169
Tritanopia (blue-blind)
#C91D4A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ba316c;
/* rgb */ color: rgb(186, 49, 108);
/* oklch */ color: oklch(53.9% 0.179 359.0);
Tailwind
colors: {
  custom: {
    50: '#d47596',
    500: '#ba316c',
    950: '#000000',
  },
}
SCSS
$custom: #ba316c;
$custom-light: #d47596;
$custom-dark: #000000;
JSON
{
  "hex": "#ba316c",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 108
  },
  "hsl": {
    "h": 334.161,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.53928,
    "c": 0.17923,
    "h": 359
  },
  "luminance": 0.13718
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA316C

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

Preview Lab → · Contrast checker → · Palette generator →

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