#BA4796#BA4796

#BA4796 is a mid, vivid pink. Relative luminance 0.171; OKLCH L 57.8% C 0.172 H 341.9°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#BA4796
RGBrgb(186, 71, 150)
HSLhsl(319, 45%, 50%)
HSVhsv(319, 62%, 73%)
CMYKcmyk(0%, 61.8%, 19.4%, 27.1%)
CIE-LABlab(48.45, 54.93, -20.00)
CIE-LCHlch(48.45, 58.46, 339.99°)
OKLaboklab(57.82% 0.1638 -0.0535)
OKLCHoklch(57.82% 0.172 341.9)
XYZxyz(28.0087, 17.1501, 30.6834)
Luminance0.1715 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4796 #47BA6B
analogous
#A547BA #BA4796 #BA475C
triadic
#BA4796 #96BA47 #4796BA
tetradic
#BA4796 #BAA547 #47BA6B #475CBA
square
#BA4796 #BAA547 #47BA6B #475CBA
split-complementary
#BA4796 #5CBA47 #47BAA5
monochromatic
#62254F #8E3573 #BA4796 #CB74AF #DBA0C9

Accessibility & contrast

On white

4.74
#BA4796 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#BA4796 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA4796
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4796#FFFFFF#000000##FFFFFF
##BA47961.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F6798
Deuteranopia (green-blind)
#717A93
Tritanopia (blue-blind)
#C54868
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba4796;
/* rgb */ color: rgb(186, 71, 150);
/* oklch */ color: oklch(57.8% 0.172 341.9);
Tailwind
colors: {
  custom: {
    50: '#d281b5',
    500: '#ba4796',
    950: '#000000',
  },
}
SCSS
$custom: #ba4796;
$custom-light: #d281b5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4796",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 150
  },
  "hsl": {
    "h": 318.783,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.57818,
    "c": 0.17235,
    "h": 341.9
  },
  "luminance": 0.17148
}

Semantic roles & 50–950 ramp

primary
#BA4796
secondary
#95C8A5
accent
#D57C53
background
#FDF8FB
surface
#FAEFF6
border
#D3CAD0
text
#140B11
muted
#837C80

Preview Lab

Preview with #BA4796

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

Preview Lab → · Contrast checker → · Palette generator →

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