#BA317D#BA317D

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

Color values

HEX#BA317D
RGBrgb(186, 49, 125)
HSLhsl(327, 58%, 46%)
HSVhsv(327, 74%, 73%)
CMYKcmyk(0%, 73.7%, 32.8%, 27.1%)
CIE-LABlab(44.40, 60.22, -11.05)
CIE-LCHlch(44.40, 61.22, 349.60°)
OKLaboklab(54.54% 0.1842 -0.0287)
OKLCHoklch(54.54% 0.186 351.2)
XYZxyz(25.0511, 14.1193, 20.8041)
Luminance0.1412 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA317D #31BA6E
analogous
#B231BA #BA317D #BA3139
triadic
#BA317D #7DBA31 #317DBA
tetradic
#BA317D #BAB231 #31BA6E #3139BA
square
#BA317D #BAB231 #31BA6E #3139BA
split-complementary
#BA317D #39BA31 #31BAB2
monochromatic
#59173C #8A245C #BA317D #D2569B #DF86B8

Accessibility & contrast

On white

5.49
#BA317D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA317D
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA317D#FFFFFF#000000##FFFFFF
##BA317D1.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#48597F
Deuteranopia (green-blind)
#6F727A
Tritanopia (blue-blind)
#C82753
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba317d;
/* rgb */ color: rgb(186, 49, 125);
/* oklch */ color: oklch(54.5% 0.186 351.2);
Tailwind
colors: {
  custom: {
    50: '#d375a2',
    500: '#ba317d',
    950: '#000000',
  },
}
SCSS
$custom: #ba317d;
$custom-light: #d375a2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba317d",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 326.715,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.54536,
    "c": 0.18644,
    "h": 351.2
  },
  "luminance": 0.14116
}

Semantic roles & 50–950 ramp

primary
#BA317D
secondary
#7EC99F
accent
#E28B46
background
#FDF7FA
surface
#FBEEF3
border
#D4C9CD
text
#15090F
muted
#837B7F

Preview Lab

Preview with #BA317D

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

Preview Lab → · Contrast checker → · Palette generator →

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