#BA4788#BA4788

#BA4788 is a mid, vivid pink. Relative luminance 0.167; OKLCH L 57.2% C 0.164 H 348.5°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#BA4788
RGBrgb(186, 71, 136)
HSLhsl(326, 45%, 50%)
HSVhsv(326, 62%, 73%)
CMYKcmyk(0%, 61.8%, 26.9%, 27.1%)
CIE-LABlab(47.91, 52.99, -12.43)
CIE-LCHlch(47.91, 54.43, 346.80°)
OKLaboklab(57.25% 0.1604 -0.0326)
OKLCHoklch(57.25% 0.164 348.5)
XYZxyz(26.9480, 16.7258, 25.0970)
Luminance0.1672 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4788 #47BA79
analogous
#B347BA #BA4788 #BA474E
triadic
#BA4788 #88BA47 #4788BA
tetradic
#BA4788 #BAB347 #47BA79 #474EBA
square
#BA4788 #BAB347 #47BA79 #474EBA
split-complementary
#BA4788 #4EBA47 #47BAB3
monochromatic
#622547 #8E3568 #BA4788 #CB74A5 #DBA0C2

Accessibility & contrast

On white

4.83
#BA4788 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#BA4788 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA4788
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4788#FFFFFF#000000##FFFFFF
##BA47881.004.834.344.83
#FFFFFF4.831.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#55658A
Deuteranopia (green-blind)
#757985
Tritanopia (blue-blind)
#C64361
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba4788;
/* rgb */ color: rgb(186, 71, 136);
/* oklch */ color: oklch(57.2% 0.164 348.5);
Tailwind
colors: {
  custom: {
    50: '#d281aa',
    500: '#ba4788',
    950: '#000000',
  },
}
SCSS
$custom: #ba4788;
$custom-light: #d281aa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4788",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 136
  },
  "hsl": {
    "h": 326.087,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.57247,
    "c": 0.16369,
    "h": 348.5
  },
  "luminance": 0.16723
}

Semantic roles & 50–950 ramp

primary
#BA4788
secondary
#95C8AB
accent
#D58B53
background
#FDF8FA
surface
#FAEFF4
border
#D3CACE
text
#150B10
muted
#837C7F

Preview Lab

Preview with #BA4788

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

Preview Lab → · Contrast checker → · Palette generator →

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