#BA318A#BA318A

#BA318A is a mid, vivid pink. Relative luminance 0.145; OKLCH L 55.1% C 0.193 H 345.5°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#BA318A
RGBrgb(186, 49, 138)
HSLhsl(321, 58%, 46%)
HSVhsv(321, 74%, 73%)
CMYKcmyk(0%, 73.7%, 25.8%, 27.1%)
CIE-LABlab(44.90, 61.79, -18.22)
CIE-LCHlch(44.90, 64.42, 343.57°)
OKLaboklab(55.07% 0.1873 -0.0484)
OKLCHoklch(55.07% 0.193 345.5)
XYZxyz(25.9366, 14.4735, 25.4676)
Luminance0.1447 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA318A #31BA61
analogous
#A531BA #BA318A #BA3145
triadic
#BA318A #8ABA31 #318ABA
tetradic
#BA318A #BAA531 #31BA61 #3145BA
square
#BA318A #BAA531 #31BA61 #3145BA
split-complementary
#BA318A #45BA31 #31BAA5
monochromatic
#591742 #8A2466 #BA318A #D256A7 #DF86C0

Accessibility & contrast

On white

5.39
#BA318A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#BA318A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA318A
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA318A#FFFFFF#000000##FFFFFF
##BA318A1.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425B8C
Deuteranopia (green-blind)
#6C7387
Tritanopia (blue-blind)
#C72E59
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba318a;
/* rgb */ color: rgb(186, 49, 138);
/* oklch */ color: oklch(55.1% 0.193 345.5);
Tailwind
colors: {
  custom: {
    50: '#d376ac',
    500: '#ba318a',
    950: '#000000',
  },
}
SCSS
$custom: #ba318a;
$custom-light: #d376ac;
$custom-dark: #000000;
JSON
{
  "hex": "#ba318a",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 138
  },
  "hsl": {
    "h": 321.022,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55065,
    "c": 0.19341,
    "h": 345.5
  },
  "luminance": 0.14471
}

Semantic roles & 50–950 ramp

primary
#BA318A
secondary
#7EC998
accent
#E27D46
background
#FDF7FA
surface
#FBEEF4
border
#D4C9CE
text
#150910
muted
#837B7F

Preview Lab

Preview with #BA318A

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

Preview Lab → · Contrast checker → · Palette generator →

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