#BA317A#BA317A

#BA317A is a mid, vivid pink. Relative luminance 0.140; OKLCH L 54.4% C 0.185 H 352.5°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#BA317A
RGBrgb(186, 49, 122)
HSLhsl(328, 58%, 46%)
HSVhsv(328, 74%, 73%)
CMYKcmyk(0%, 73.7%, 34.4%, 27.1%)
CIE-LABlab(44.30, 59.87, -9.37)
CIE-LCHlch(44.30, 60.60, 351.11°)
OKLaboklab(54.42% 0.1834 -0.0241)
OKLCHoklch(54.42% 0.185 352.5)
XYZxyz(24.8623, 14.0438, 19.8100)
Luminance0.1404 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA317A #31BA71
analogous
#B531BA #BA317A #BA3135
triadic
#BA317A #7ABA31 #317ABA
tetradic
#BA317A #BAB531 #31BA71 #3135BA
square
#BA317A #BAB531 #31BA71 #3135BA
split-complementary
#BA317A #35BA31 #31BAB5
monochromatic
#59173A #8A245A #BA317A #D25698 #DF86B6

Accessibility & contrast

On white

5.51
#BA317A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#BA317A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA317A
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA317A#FFFFFF#000000##FFFFFF
##BA317A1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49597C
Deuteranopia (green-blind)
#707277
Tritanopia (blue-blind)
#C82551
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba317a;
/* rgb */ color: rgb(186, 49, 122);
/* oklch */ color: oklch(54.4% 0.185 352.5);
Tailwind
colors: {
  custom: {
    50: '#d375a0',
    500: '#ba317a',
    950: '#000000',
  },
}
SCSS
$custom: #ba317a;
$custom-light: #d375a0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba317a",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 122
  },
  "hsl": {
    "h": 328.029,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.54421,
    "c": 0.185,
    "h": 352.5
  },
  "luminance": 0.14041
}

Semantic roles & 50–950 ramp

primary
#BA317A
secondary
#7EC9A1
accent
#E28F46
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#15090E
muted
#837B7E

Preview Lab

Preview with #BA317A

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

Preview Lab → · Contrast checker → · Palette generator →

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