#BA316F#BA316F

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

Color values

HEX#BA316F
RGBrgb(186, 49, 111)
HSLhsl(333, 58%, 46%)
HSVhsv(333, 74%, 73%)
CMYKcmyk(0%, 73.7%, 40.3%, 27.1%)
CIE-LABlab(43.93, 58.69, -3.14)
CIE-LCHlch(43.93, 58.77, 356.94°)
OKLaboklab(54.03% 0.1802 -0.0075)
OKLCHoklch(54.03% 0.18 357.6)
XYZxyz(24.2190, 13.7865, 16.4215)
Luminance0.1378 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA316F #31BA7C
analogous
#BA31B3 #BA316F #BA3731
triadic
#BA316F #6FBA31 #316FBA
tetradic
#BA316F #B3BA31 #31BA7C #3731BA
square
#BA316F #B3BA31 #31BA7C #3731BA
split-complementary
#BA316F #31BA37 #31B3BA
monochromatic
#591735 #8A2452 #BA316F #D2568E #DF86AE

Accessibility & contrast

On white

5.59
#BA316F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#BA316F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA316F
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA316F#FFFFFF#000000##FFFFFF
##BA316F1.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D5771
Deuteranopia (green-blind)
#73716C
Tritanopia (blue-blind)
#C91F4C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ba316f;
/* rgb */ color: rgb(186, 49, 111);
/* oklch */ color: oklch(54.0% 0.180 357.6);
Tailwind
colors: {
  custom: {
    50: '#d47598',
    500: '#ba316f',
    950: '#000000',
  },
}
SCSS
$custom: #ba316f;
$custom-light: #d47598;
$custom-dark: #000000;
JSON
{
  "hex": "#ba316f",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 111
  },
  "hsl": {
    "h": 332.847,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.54028,
    "c": 0.18033,
    "h": 357.6
  },
  "luminance": 0.13783
}

Semantic roles & 50–950 ramp

primary
#BA316F
secondary
#7EC9A7
accent
#E29B46
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#15090D
muted
#837B7E

Preview Lab

Preview with #BA316F

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

Preview Lab → · Contrast checker → · Palette generator →

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