#BA319A#BA319A

#BA319A is a mid, highly saturated pink. Relative luminance 0.150; OKLCH L 55.8% C 0.203 H 339.1°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#BA319A
RGBrgb(186, 49, 154)
HSLhsl(314, 58%, 46%)
HSVhsv(314, 74%, 73%)
CMYKcmyk(0%, 73.7%, 17.2%, 27.1%)
CIE-LABlab(45.59, 63.92, -26.81)
CIE-LCHlch(45.59, 69.32, 337.25°)
OKLaboklab(55.79% 0.19 -0.0725)
OKLCHoklch(55.79% 0.203 339.1)
XYZxyz(27.1814, 14.9714, 32.0238)
Luminance0.1497 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA319A #31BA51
analogous
#9531BA #BA319A #BA3155
triadic
#BA319A #9ABA31 #319ABA
tetradic
#BA319A #BA9531 #31BA51 #3155BA
square
#BA319A #BA9531 #31BA51 #3155BA
split-complementary
#BA319A #55BA31 #31BA95
monochromatic
#59174A #8A2472 #BA319A #D256B5 #DF86CA

Accessibility & contrast

On white

5.26
#BA319A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#BA319A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA319A
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA319A#FFFFFF#000000##FFFFFF
##BA319A1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395E9D
Deuteranopia (green-blind)
#667497
Tritanopia (blue-blind)
#C53762
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba319a;
/* rgb */ color: rgb(186, 49, 154);
/* oklch */ color: oklch(55.8% 0.203 339.1);
Tailwind
colors: {
  custom: {
    50: '#d376b8',
    500: '#ba319a',
    950: '#000000',
  },
}
SCSS
$custom: #ba319a;
$custom-light: #d376b8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba319a",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 154
  },
  "hsl": {
    "h": 314.015,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55792,
    "c": 0.20333,
    "h": 339.1
  },
  "luminance": 0.14969
}

Semantic roles & 50–950 ramp

primary
#BA319A
secondary
#7EC98F
accent
#E26B46
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #BA319A

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

Preview Lab → · Contrast checker → · Palette generator →

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