#BA3A97#BA3A97

#BA3A97 is a mid, vivid pink. Relative luminance 0.157; OKLCH L 56.5% C 0.191 H 340.6°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#BA3A97
RGBrgb(186, 58, 151)
HSLhsl(316, 52%, 48%)
HSVhsv(316, 69%, 73%)
CMYKcmyk(0%, 68.8%, 18.8%, 27.1%)
CIE-LABlab(46.58, 60.35, -23.48)
CIE-LCHlch(46.58, 64.75, 338.74°)
OKLaboklab(56.46% 0.18 -0.0632)
OKLCHoklch(56.46% 0.191 340.6)
XYZxyz(27.3494, 15.7022, 30.8626)
Luminance0.1570 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3A97 #3ABA5D
analogous
#9D3ABA #BA3A97 #BA3A57
triadic
#BA3A97 #97BA3A #3A97BA
tetradic
#BA3A97 #BA9D3A #3ABA5D #3A57BA
square
#BA3A97 #BA9D3A #3ABA5D #3A57BA
split-complementary
#BA3A97 #57BA3A #3ABA9D
monochromatic
#5D1D4B #8B2B71 #BA3A97 #CE63B1 #DD92C8

Accessibility & contrast

On white

5.07
#BA3A97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#BA3A97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3A97
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3A97#FFFFFF#000000##FFFFFF
##BA3A971.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43619A
Deuteranopia (green-blind)
#6B7694
Tritanopia (blue-blind)
#C53D63
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba3a97;
/* rgb */ color: rgb(186, 58, 151);
/* oklch */ color: oklch(56.5% 0.191 340.6);
Tailwind
colors: {
  custom: {
    50: '#d27ab5',
    500: '#ba3a97',
    950: '#000000',
  },
}
SCSS
$custom: #ba3a97;
$custom-light: #d27ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3a97",
  "rgb": {
    "r": 186,
    "g": 58,
    "b": 151
  },
  "hsl": {
    "h": 316.406,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.56464,
    "c": 0.19074,
    "h": 340.6
  },
  "luminance": 0.157
}

Semantic roles & 50–950 ramp

primary
#BA3A97
secondary
#88C899
accent
#DC734C
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #BA3A97

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

Preview Lab → · Contrast checker → · Palette generator →

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