#BA3788#BA3788

#BA3788 is a mid, vivid pink. Relative luminance 0.149; OKLCH L 55.5% C 0.185 H 346.8°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#BA3788
RGBrgb(186, 55, 136)
HSLhsl(323, 54%, 47%)
HSVhsv(323, 70%, 73%)
CMYKcmyk(0%, 70.4%, 26.9%, 27.1%)
CIE-LABlab(45.57, 59.45, -15.99)
CIE-LCHlch(45.57, 61.56, 344.94°)
OKLaboklab(55.52% 0.1804 -0.0422)
OKLCHoklch(55.52% 0.185 346.8)
XYZxyz(26.0610, 14.9518, 24.8013)
Luminance0.1495 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3788 #37BA69
analogous
#AB37BA #BA3788 #BA3746
triadic
#BA3788 #88BA37 #3788BA
tetradic
#BA3788 #BAAB37 #37BA69 #3746BA
square
#BA3788 #BAAB37 #37BA69 #3746BA
split-complementary
#BA3788 #46BA37 #37BAAB
monochromatic
#5C1B43 #8B2965 #BA3788 #D05FA4 #DE8EBF

Accessibility & contrast

On white

5.26
#BA3788 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#BA3788 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3788
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3788#FFFFFF#000000##FFFFFF
##BA37881.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#485D8A
Deuteranopia (green-blind)
#6E7485
Tritanopia (blue-blind)
#C7335B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba3788;
/* rgb */ color: rgb(186, 55, 136);
/* oklch */ color: oklch(55.5% 0.185 346.8);
Tailwind
colors: {
  custom: {
    50: '#d378aa',
    500: '#ba3788',
    950: '#000000',
  },
}
SCSS
$custom: #ba3788;
$custom-light: #d378aa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3788",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 136
  },
  "hsl": {
    "h": 322.901,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.55523,
    "c": 0.18523,
    "h": 346.8
  },
  "luminance": 0.14949
}

Semantic roles & 50–950 ramp

primary
#BA3788
secondary
#85C89E
accent
#DE824A
background
#FDF7FA
surface
#FBEEF4
border
#D4C9CE
text
#150A10
muted
#837C7F

Preview Lab

Preview with #BA3788

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

Preview Lab → · Contrast checker → · Palette generator →

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