#BA319E#BA319E

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

Color values

HEX#BA319E
RGBrgb(186, 49, 158)
HSLhsl(312, 58%, 46%)
HSVhsv(312, 74%, 73%)
CMYKcmyk(0%, 73.7%, 15.1%, 27.1%)
CIE-LABlab(45.78, 64.49, -28.91)
CIE-LCHlch(45.78, 70.67, 335.85°)
OKLaboklab(55.99% 0.1904 -0.0785)
OKLCHoklch(55.99% 0.206 337.6)
XYZxyz(27.5201, 15.1069, 33.8077)
Luminance0.1510 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA319E #31BA4D
analogous
#9131BA #BA319E #BA3159
triadic
#BA319E #9EBA31 #319EBA
tetradic
#BA319E #BA9131 #31BA4D #3159BA
square
#BA319E #BA9131 #31BA4D #3159BA
split-complementary
#BA319E #59BA31 #31BA91
monochromatic
#59174C #8A2475 #BA319E #D256B9 #DF86CD

Accessibility & contrast

On white

5.22
#BA319E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#BA319E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA319E
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA319E#FFFFFF#000000##FFFFFF
##BA319E1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365FA1
Deuteranopia (green-blind)
#65749B
Tritanopia (blue-blind)
#C43964
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba319e;
/* rgb */ color: rgb(186, 49, 158);
/* oklch */ color: oklch(56.0% 0.206 337.6);
Tailwind
colors: {
  custom: {
    50: '#d377bb',
    500: '#ba319e',
    950: '#000000',
  },
}
SCSS
$custom: #ba319e;
$custom-light: #d377bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba319e",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 312.263,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55986,
    "c": 0.20599,
    "h": 337.6
  },
  "luminance": 0.15104
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA319E

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

Preview Lab → · Contrast checker → · Palette generator →

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