#BA319C#BA319C

#BA319C is a mid, highly saturated pink. Relative luminance 0.150; OKLCH L 55.9% C 0.205 H 338.3°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#BA319C
RGBrgb(186, 49, 156)
HSLhsl(313, 58%, 46%)
HSVhsv(313, 74%, 73%)
CMYKcmyk(0%, 73.7%, 16.1%, 27.1%)
CIE-LABlab(45.69, 64.20, -27.86)
CIE-LCHlch(45.69, 69.99, 336.54°)
OKLaboklab(55.89% 0.1902 -0.0756)
OKLCHoklch(55.89% 0.205 338.3)
XYZxyz(27.3494, 15.0386, 32.9084)
Luminance0.1504 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA319C #31BA4F
analogous
#9331BA #BA319C #BA3157
triadic
#BA319C #9CBA31 #319CBA
tetradic
#BA319C #BA9331 #31BA4F #3157BA
square
#BA319C #BA9331 #31BA4F #3157BA
split-complementary
#BA319C #57BA31 #31BA93
monochromatic
#59174B #8A2473 #BA319C #D256B7 #DF86CC

Accessibility & contrast

On white

5.24
#BA319C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#BA319C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA319C
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA319C#FFFFFF#000000##FFFFFF
##BA319C1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385F9F
Deuteranopia (green-blind)
#657499
Tritanopia (blue-blind)
#C43863
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba319c;
/* rgb */ color: rgb(186, 49, 156);
/* oklch */ color: oklch(55.9% 0.205 338.3);
Tailwind
colors: {
  custom: {
    50: '#d376b9',
    500: '#ba319c',
    950: '#000000',
  },
}
SCSS
$custom: #ba319c;
$custom-light: #d376b9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba319c",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 156
  },
  "hsl": {
    "h": 313.139,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55888,
    "c": 0.20466,
    "h": 338.3
  },
  "luminance": 0.15036
}

Semantic roles & 50–950 ramp

primary
#BA319C
secondary
#7EC98E
accent
#E26846
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #BA319C

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

Preview Lab → · Contrast checker → · Palette generator →

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