#BA3897#BA3897

#BA3897 is a mid, vivid pink. Relative luminance 0.155; OKLCH L 56.3% C 0.193 H 340.6°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#BA3897
RGBrgb(186, 56, 151)
HSLhsl(316, 54%, 47%)
HSVhsv(316, 70%, 73%)
CMYKcmyk(0%, 69.9%, 18.8%, 27.1%)
CIE-LABlab(46.32, 61.09, -23.89)
CIE-LCHlch(46.32, 65.59, 338.64°)
OKLaboklab(56.27% 0.1822 -0.0643)
OKLCHoklch(56.27% 0.193 340.6)
XYZxyz(27.2505, 15.5044, 30.8297)
Luminance0.1550 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3897 #38BA5B
analogous
#9C38BA #BA3897 #BA3856
triadic
#BA3897 #97BA38 #3897BA
tetradic
#BA3897 #BA9C38 #38BA5B #3856BA
square
#BA3897 #BA9C38 #38BA5B #3856BA
split-complementary
#BA3897 #56BA38 #38BA9C
monochromatic
#5C1C4B #8B2A71 #BA3897 #CF60B1 #DD8FC8

Accessibility & contrast

On white

5.12
#BA3897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#BA3897 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3897
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3897#FFFFFF#000000##FFFFFF
##BA38971.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41609A
Deuteranopia (green-blind)
#6A7594
Tritanopia (blue-blind)
#C53B63
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba3897;
/* rgb */ color: rgb(186, 56, 151);
/* oklch */ color: oklch(56.3% 0.193 340.6);
Tailwind
colors: {
  custom: {
    50: '#d279b6',
    500: '#ba3897',
    950: '#000000',
  },
}
SCSS
$custom: #ba3897;
$custom-light: #d279b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3897",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 151
  },
  "hsl": {
    "h": 316.154,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.56272,
    "c": 0.19321,
    "h": 340.6
  },
  "luminance": 0.15502
}

Semantic roles & 50–950 ramp

primary
#BA3897
secondary
#86C898
accent
#DD724B
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #BA3897

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

Preview Lab → · Contrast checker → · Palette generator →

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