#BA3796#BA3796

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

Color values

HEX#BA3796
RGBrgb(186, 55, 150)
HSLhsl(316, 54%, 47%)
HSVhsv(316, 70%, 73%)
CMYKcmyk(0%, 70.4%, 19.4%, 27.1%)
CIE-LABlab(46.15, 61.31, -23.55)
CIE-LCHlch(46.15, 65.68, 338.98°)
OKLaboklab(56.13% 0.1831 -0.0634)
OKLCHoklch(56.13% 0.194 340.9)
XYZxyz(27.1217, 15.3761, 30.3878)
Luminance0.1537 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3796 #37BA5B
analogous
#9D37BA #BA3796 #BA3754
triadic
#BA3796 #96BA37 #3796BA
tetradic
#BA3796 #BA9D37 #37BA5B #3754BA
square
#BA3796 #BA9D37 #37BA5B #3754BA
split-complementary
#BA3796 #54BA37 #37BA9D
monochromatic
#5C1B4A #8B2970 #BA3796 #D05FB1 #DE8EC8

Accessibility & contrast

On white

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

On black

4.07
#BA3796 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##BA3796#FFFFFF#000000##FFFFFF
##BA37961.005.154.075.15
#FFFFFF5.151.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#416099
Deuteranopia (green-blind)
#6A7593
Tritanopia (blue-blind)
#C53A62
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba3796;
/* rgb */ color: rgb(186, 55, 150);
/* oklch */ color: oklch(56.1% 0.194 340.9);
Tailwind
colors: {
  custom: {
    50: '#d279b5',
    500: '#ba3796',
    950: '#000000',
  },
}
SCSS
$custom: #ba3796;
$custom-light: #d279b5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3796",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 150
  },
  "hsl": {
    "h": 316.489,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.56133,
    "c": 0.19379,
    "h": 340.9
  },
  "luminance": 0.15373
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA3796

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

Preview Lab → · Contrast checker → · Palette generator →

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