#BA4797#BA4797

#BA4797 is a mid, vivid pink. Relative luminance 0.172; OKLCH L 57.9% C 0.173 H 341.5°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#BA4797
RGBrgb(186, 71, 151)
HSLhsl(318, 45%, 50%)
HSVhsv(318, 62%, 73%)
CMYKcmyk(0%, 61.8%, 18.8%, 27.1%)
CIE-LABlab(48.49, 55.08, -20.54)
CIE-LCHlch(48.49, 58.78, 339.55°)
OKLaboklab(57.86% 0.164 -0.055)
OKLCHoklch(57.86% 0.173 341.5)
XYZxyz(28.0895, 17.1825, 31.1093)
Luminance0.1718 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4797 #47BA6A
analogous
#A447BA #BA4797 #BA475D
triadic
#BA4797 #97BA47 #4797BA
tetradic
#BA4797 #BAA447 #47BA6A #475DBA
square
#BA4797 #BAA447 #47BA6A #475DBA
split-complementary
#BA4797 #5DBA47 #47BAA4
monochromatic
#62254F #8E3573 #BA4797 #CB74B0 #DBA0C9

Accessibility & contrast

On white

4.73
#BA4797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#BA4797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA4797
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4797#FFFFFF#000000##FFFFFF
##BA47971.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F6799
Deuteranopia (green-blind)
#717A94
Tritanopia (blue-blind)
#C54969
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba4797;
/* rgb */ color: rgb(186, 71, 151);
/* oklch */ color: oklch(57.9% 0.173 341.5);
Tailwind
colors: {
  custom: {
    50: '#d281b5',
    500: '#ba4797',
    950: '#000000',
  },
}
SCSS
$custom: #ba4797;
$custom-light: #d281b5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4797",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 151
  },
  "hsl": {
    "h": 318.261,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.57861,
    "c": 0.17302,
    "h": 341.5
  },
  "luminance": 0.1718
}

Semantic roles & 50–950 ramp

primary
#BA4797
secondary
#95C8A4
accent
#D57A53
background
#FDF8FB
surface
#FAEFF6
border
#D3CAD0
text
#140B11
muted
#837C80

Preview Lab

Preview with #BA4797

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

Preview Lab → · Contrast checker → · Palette generator →

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