#BA317B#BA317B

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

Color values

HEX#BA317B
RGBrgb(186, 49, 123)
HSLhsl(328, 58%, 46%)
HSVhsv(328, 74%, 73%)
CMYKcmyk(0%, 73.7%, 33.9%, 27.1%)
CIE-LABlab(44.33, 59.99, -9.93)
CIE-LCHlch(44.33, 60.80, 350.60°)
OKLaboklab(54.46% 0.1837 -0.0256)
OKLCHoklch(54.46% 0.185 352.1)
XYZxyz(24.9246, 14.0687, 20.1380)
Luminance0.1407 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA317B #31BA70
analogous
#B431BA #BA317B #BA3136
triadic
#BA317B #7BBA31 #317BBA
tetradic
#BA317B #BAB431 #31BA70 #3136BA
square
#BA317B #BAB431 #31BA70 #3136BA
split-complementary
#BA317B #36BA31 #31BAB4
monochromatic
#59173B #8A245B #BA317B #D25699 #DF86B6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA317B#FFFFFF#000000##FFFFFF
##BA317B1.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)
#49597D
Deuteranopia (green-blind)
#707278
Tritanopia (blue-blind)
#C82652
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba317b;
/* rgb */ color: rgb(186, 49, 123);
/* oklch */ color: oklch(54.5% 0.185 352.1);
Tailwind
colors: {
  custom: {
    50: '#d375a1',
    500: '#ba317b',
    950: '#000000',
  },
}
SCSS
$custom: #ba317b;
$custom-light: #d375a1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba317b",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 123
  },
  "hsl": {
    "h": 327.591,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.54459,
    "c": 0.18547,
    "h": 352.1
  },
  "luminance": 0.14066
}

Semantic roles & 50–950 ramp

primary
#BA317B
secondary
#7EC9A0
accent
#E28E46
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#15090E
muted
#837B7E

Preview Lab

Preview with #BA317B

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

Preview Lab → · Contrast checker → · Palette generator →

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