#BA3997#BA3997

#BA3997 is a mid, vivid pink. Relative luminance 0.156; OKLCH L 56.4% C 0.192 H 340.6°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#BA3997
RGBrgb(186, 57, 151)
HSLhsl(316, 53%, 48%)
HSVhsv(316, 69%, 73%)
CMYKcmyk(0%, 69.4%, 18.8%, 27.1%)
CIE-LABlab(46.45, 60.72, -23.68)
CIE-LCHlch(46.45, 65.18, 338.69°)
OKLaboklab(56.37% 0.1811 -0.0638)
OKLCHoklch(56.37% 0.192 340.6)
XYZxyz(27.2995, 15.6023, 30.8460)
Luminance0.1560 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3997 #39BA5C
analogous
#9C39BA #BA3997 #BA3957
triadic
#BA3997 #97BA39 #3997BA
tetradic
#BA3997 #BA9C39 #39BA5C #3957BA
square
#BA3997 #BA9C39 #39BA5C #3957BA
split-complementary
#BA3997 #57BA39 #39BA9C
monochromatic
#5C1C4B #8B2B71 #BA3997 #CF61B1 #DD90C8

Accessibility & contrast

On white

5.10
#BA3997 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#BA3997 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3997
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3997#FFFFFF#000000##FFFFFF
##BA39971.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#42619A
Deuteranopia (green-blind)
#6A7694
Tritanopia (blue-blind)
#C53C63
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba3997;
/* rgb */ color: rgb(186, 57, 151);
/* oklch */ color: oklch(56.4% 0.192 340.6);
Tailwind
colors: {
  custom: {
    50: '#d27ab5',
    500: '#ba3997',
    950: '#000000',
  },
}
SCSS
$custom: #ba3997;
$custom-light: #d27ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3997",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 151
  },
  "hsl": {
    "h": 316.279,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56367,
    "c": 0.19198,
    "h": 340.6
  },
  "luminance": 0.156
}

Semantic roles & 50–950 ramp

primary
#BA3997
secondary
#87C899
accent
#DC734B
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #BA3997

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

Preview Lab → · Contrast checker → · Palette generator →

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