#BA4E7A#BA4E7A

#BA4E7A is a mid, vivid pink. Relative luminance 0.173; OKLCH L 57.6% C 0.146 H 357.2°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#BA4E7A
RGBrgb(186, 78, 122)
HSLhsl(336, 44%, 52%)
HSVhsv(336, 58%, 73%)
CMYKcmyk(0%, 58.1%, 34.4%, 27.1%)
CIE-LABlab(48.63, 48.01, -2.92)
CIE-LCHlch(48.63, 48.10, 356.52°)
OKLaboklab(57.63% 0.1463 -0.0071)
OKLCHoklch(57.63% 0.146 357.2)
XYZxyz(26.4883, 17.2958, 20.3520)
Luminance0.1729 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4E7A #4EBA8E
analogous
#BA4EB0 #BA4E7A #BA584E
triadic
#BA4E7A #7ABA4E #4E7ABA
tetradic
#BA4E7A #B0BA4E #4EBA8E #584EBA
square
#BA4E7A #B0BA4E #4EBA8E #584EBA
split-complementary
#BA4E7A #4EBA58 #4EB0BA
monochromatic
#662841 #92395D #BA4E7A #CB7A9B #DCA6BC

Accessibility & contrast

On white

4.71
#BA4E7A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#BA4E7A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA4E7A
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4E7A#FFFFFF#000000##FFFFFF
##BA4E7A1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F677B
Deuteranopia (green-blind)
#7C7B77
Tritanopia (blue-blind)
#C8465F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba4e7a;
/* rgb */ color: rgb(186, 78, 122);
/* oklch */ color: oklch(57.6% 0.146 357.2);
Tailwind
colors: {
  custom: {
    50: '#d284a0',
    500: '#ba4e7a',
    950: '#000000',
  },
}
SCSS
$custom: #ba4e7a;
$custom-light: #d284a0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4e7a",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 122
  },
  "hsl": {
    "h": 335.556,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.57626,
    "c": 0.14644,
    "h": 357.2
  },
  "luminance": 0.17293
}

Semantic roles & 50–950 ramp

primary
#BA4E7A
secondary
#9ACAB6
accent
#D4A054
background
#FDF8F9
surface
#FAEFF2
border
#D3CACC
text
#150B0E
muted
#837C7E

Preview Lab

Preview with #BA4E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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