#BA319F#BA319F

#BA319F is a mid, highly saturated pink. Relative luminance 0.151; OKLCH L 56.0% C 0.207 H 337.2°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#BA319F
RGBrgb(186, 49, 159)
HSLhsl(312, 58%, 46%)
HSVhsv(312, 74%, 73%)
CMYKcmyk(0%, 73.7%, 14.5%, 27.1%)
CIE-LABlab(45.83, 64.63, -29.44)
CIE-LCHlch(45.83, 71.02, 335.51°)
OKLaboklab(56.04% 0.1906 -0.08)
OKLCHoklch(56.04% 0.207 337.2)
XYZxyz(27.6065, 15.1415, 34.2628)
Luminance0.1514 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA319F #31BA4C
analogous
#9031BA #BA319F #BA315A
triadic
#BA319F #9FBA31 #319FBA
tetradic
#BA319F #BA9031 #31BA4C #315ABA
square
#BA319F #BA9031 #31BA4C #315ABA
split-complementary
#BA319F #5ABA31 #31BA90
monochromatic
#59174C #8A2476 #BA319F #D256BA #DF86CE

Accessibility & contrast

On white

5.21
#BA319F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#BA319F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA319F
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA319F#FFFFFF#000000##FFFFFF
##BA319F1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355FA2
Deuteranopia (green-blind)
#64749C
Tritanopia (blue-blind)
#C43965
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba319f;
/* rgb */ color: rgb(186, 49, 159);
/* oklch */ color: oklch(56.0% 0.207 337.2);
Tailwind
colors: {
  custom: {
    50: '#d377bb',
    500: '#ba319f',
    950: '#000000',
  },
}
SCSS
$custom: #ba319f;
$custom-light: #d377bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba319f",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 311.825,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.56035,
    "c": 0.20668,
    "h": 337.2
  },
  "luminance": 0.15139
}

Semantic roles & 50–950 ramp

primary
#BA319F
secondary
#7EC98D
accent
#E26546
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA319F

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

Preview Lab → · Contrast checker → · Palette generator →

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