#BA317F#BA317F

#BA317F is a mid, vivid pink. Relative luminance 0.142; OKLCH L 54.6% C 0.187 H 350.3°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#BA317F
RGBrgb(186, 49, 127)
HSLhsl(326, 58%, 46%)
HSVhsv(326, 74%, 73%)
CMYKcmyk(0%, 73.7%, 31.7%, 27.1%)
CIE-LABlab(44.48, 60.45, -12.16)
CIE-LCHlch(44.48, 61.66, 348.62°)
OKLaboklab(54.61% 0.1847 -0.0317)
OKLCHoklch(54.61% 0.187 350.3)
XYZxyz(25.1801, 14.1709, 21.4838)
Luminance0.1417 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA317F #31BA6C
analogous
#B031BA #BA317F #BA313B
triadic
#BA317F #7FBA31 #317FBA
tetradic
#BA317F #BAB031 #31BA6C #313BBA
square
#BA317F #BAB031 #31BA6C #313BBA
split-complementary
#BA317F #3BBA31 #31BAB0
monochromatic
#59173D #8A245E #BA317F #D2569D #DF86B9

Accessibility & contrast

On white

5.48
#BA317F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#BA317F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA317F
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA317F#FFFFFF#000000##FFFFFF
##BA317F1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475A81
Deuteranopia (green-blind)
#6F727C
Tritanopia (blue-blind)
#C82854
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba317f;
/* rgb */ color: rgb(186, 49, 127);
/* oklch */ color: oklch(54.6% 0.187 350.3);
Tailwind
colors: {
  custom: {
    50: '#d376a4',
    500: '#ba317f',
    950: '#000000',
  },
}
SCSS
$custom: #ba317f;
$custom-light: #d376a4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba317f",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 325.839,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.54614,
    "c": 0.18744,
    "h": 350.3
  },
  "luminance": 0.14168
}

Semantic roles & 50–950 ramp

primary
#BA317F
secondary
#7EC99E
accent
#E28946
background
#FDF7FA
surface
#FBEEF4
border
#D4C9CE
text
#15090F
muted
#837B7F

Preview Lab

Preview with #BA317F

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

Preview Lab → · Contrast checker → · Palette generator →

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