#BA3791#BA3791

#BA3791 is a mid, vivid pink. Relative luminance 0.152; OKLCH L 55.9% C 0.191 H 343.0°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#BA3791
RGBrgb(186, 55, 145)
HSLhsl(319, 54%, 47%)
HSVhsv(319, 70%, 73%)
CMYKcmyk(0%, 70.4%, 22%, 27.1%)
CIE-LABlab(45.93, 60.63, -20.88)
CIE-LCHlch(45.93, 64.12, 341.00°)
OKLaboklab(55.91% 0.1822 -0.0558)
OKLCHoklch(55.91% 0.191 343)
XYZxyz(26.7276, 15.2185, 28.3124)
Luminance0.1522 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3791 #37BA60
analogous
#A237BA #BA3791 #BA374F
triadic
#BA3791 #91BA37 #3791BA
tetradic
#BA3791 #BAA237 #37BA60 #374FBA
square
#BA3791 #BAA237 #37BA60 #374FBA
split-complementary
#BA3791 #4FBA37 #37BAA2
monochromatic
#5C1B47 #8B296C #BA3791 #D05FAC #DE8EC5

Accessibility & contrast

On white

5.19
#BA3791 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#BA3791 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3791
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3791#FFFFFF#000000##FFFFFF
##BA37911.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445F94
Deuteranopia (green-blind)
#6C758E
Tritanopia (blue-blind)
#C6375F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba3791;
/* rgb */ color: rgb(186, 55, 145);
/* oklch */ color: oklch(55.9% 0.191 343.0);
Tailwind
colors: {
  custom: {
    50: '#d379b1',
    500: '#ba3791',
    950: '#000000',
  },
}
SCSS
$custom: #ba3791;
$custom-light: #d379b1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3791",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 145
  },
  "hsl": {
    "h": 318.779,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.55908,
    "c": 0.19061,
    "h": 343
  },
  "luminance": 0.15216
}

Semantic roles & 50–950 ramp

primary
#BA3791
secondary
#85C89A
accent
#DE784A
background
#FDF7FA
surface
#FAEEF5
border
#D3C9CF
text
#150A10
muted
#837C7F

Preview Lab

Preview with #BA3791

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

Preview Lab → · Contrast checker → · Palette generator →

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