#BA317C#BA317C

#BA317C is a mid, vivid pink. Relative luminance 0.141; OKLCH L 54.5% C 0.186 H 351.6°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#BA317C
RGBrgb(186, 49, 124)
HSLhsl(327, 58%, 46%)
HSVhsv(327, 74%, 73%)
CMYKcmyk(0%, 73.7%, 33.3%, 27.1%)
CIE-LABlab(44.37, 60.10, -10.49)
CIE-LCHlch(44.37, 61.01, 350.10°)
OKLaboklab(54.5% 0.184 -0.0271)
OKLCHoklch(54.5% 0.186 351.6)
XYZxyz(24.9875, 14.0939, 20.4694)
Luminance0.1409 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA317C #31BA6F
analogous
#B331BA #BA317C #BA3137
triadic
#BA317C #7CBA31 #317CBA
tetradic
#BA317C #BAB331 #31BA6F #3137BA
square
#BA317C #BAB331 #31BA6F #3137BA
split-complementary
#BA317C #37BA31 #31BAB3
monochromatic
#59173B #8A245C #BA317C #D2569A #DF86B7

Accessibility & contrast

On white

5.50
#BA317C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#BA317C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA317C
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA317C#FFFFFF#000000##FFFFFF
##BA317C1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49597E
Deuteranopia (green-blind)
#707279
Tritanopia (blue-blind)
#C82752
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba317c;
/* rgb */ color: rgb(186, 49, 124);
/* oklch */ color: oklch(54.5% 0.186 351.6);
Tailwind
colors: {
  custom: {
    50: '#d375a2',
    500: '#ba317c',
    950: '#000000',
  },
}
SCSS
$custom: #ba317c;
$custom-light: #d375a2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba317c",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 124
  },
  "hsl": {
    "h": 327.153,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.54497,
    "c": 0.18595,
    "h": 351.6
  },
  "luminance": 0.14091
}

Semantic roles & 50–950 ramp

primary
#BA317C
secondary
#7EC9A0
accent
#E28D46
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#15090F
muted
#837B7E

Preview Lab

Preview with #BA317C

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

Preview Lab → · Contrast checker → · Palette generator →

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