#BA3797#BA3797

#BA3797 is a mid, vivid pink. Relative luminance 0.154; OKLCH L 56.2% C 0.194 H 340.5°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#BA3797
RGBrgb(186, 55, 151)
HSLhsl(316, 54%, 47%)
HSVhsv(316, 70%, 73%)
CMYKcmyk(0%, 70.4%, 18.8%, 27.1%)
CIE-LABlab(46.19, 61.45, -24.09)
CIE-LCHlch(46.19, 66.00, 338.60°)
OKLaboklab(56.18% 0.1833 -0.0649)
OKLCHoklch(56.18% 0.194 340.5)
XYZxyz(27.2025, 15.4085, 30.8137)
Luminance0.1541 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3797 #37BA5A
analogous
#9C37BA #BA3797 #BA3755
triadic
#BA3797 #97BA37 #3797BA
tetradic
#BA3797 #BA9C37 #37BA5A #3755BA
square
#BA3797 #BA9C37 #37BA5A #3755BA
split-complementary
#BA3797 #55BA37 #37BA9C
monochromatic
#5C1B4A #8B2971 #BA3797 #D05FB1 #DE8EC8

Accessibility & contrast

On white

5.15
#BA3797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#BA3797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3797
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3797#FFFFFF#000000##FFFFFF
##BA37971.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40609A
Deuteranopia (green-blind)
#6A7594
Tritanopia (blue-blind)
#C53A62
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba3797;
/* rgb */ color: rgb(186, 55, 151);
/* oklch */ color: oklch(56.2% 0.194 340.5);
Tailwind
colors: {
  custom: {
    50: '#d279b6',
    500: '#ba3797',
    950: '#000000',
  },
}
SCSS
$custom: #ba3797;
$custom-light: #d279b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3797",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 316.031,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.56179,
    "c": 0.19444,
    "h": 340.5
  },
  "luminance": 0.15406
}

Semantic roles & 50–950 ramp

primary
#BA3797
secondary
#85C897
accent
#DE724A
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #BA3797

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

Preview Lab → · Contrast checker → · Palette generator →

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