#BA4E7F#BA4E7F

#BA4E7F is a mid, vivid pink. Relative luminance 0.174; OKLCH L 57.8% C 0.149 H 354.4°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#BA4E7F
RGBrgb(186, 78, 127)
HSLhsl(333, 44%, 52%)
HSVhsv(333, 58%, 73%)
CMYKcmyk(0%, 58.1%, 31.7%, 27.1%)
CIE-LABlab(48.79, 48.63, -5.70)
CIE-LCHlch(48.79, 48.97, 353.31°)
OKLaboklab(57.79% 0.1479 -0.0144)
OKLCHoklch(57.79% 0.149 354.4)
XYZxyz(26.8061, 17.4229, 22.0258)
Luminance0.1742 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4E7F #4EBA89
analogous
#BA4EB5 #BA4E7F #BA534E
triadic
#BA4E7F #7FBA4E #4E7FBA
tetradic
#BA4E7F #B5BA4E #4EBA89 #534EBA
square
#BA4E7F #B5BA4E #4EBA89 #534EBA
split-complementary
#BA4E7F #4EBA53 #4EB5BA
monochromatic
#662844 #923961 #BA4E7F #CB7A9F #DCA6BF

Accessibility & contrast

On white

4.68
#BA4E7F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#BA4E7F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA4E7F
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4E7F#FFFFFF#000000##FFFFFF
##BA4E7F1.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E6881
Deuteranopia (green-blind)
#7B7B7C
Tritanopia (blue-blind)
#C74761
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba4e7f;
/* rgb */ color: rgb(186, 78, 127);
/* oklch */ color: oklch(57.8% 0.149 354.4);
Tailwind
colors: {
  custom: {
    50: '#d284a4',
    500: '#ba4e7f',
    950: '#000000',
  },
}
SCSS
$custom: #ba4e7f;
$custom-light: #d284a4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4e7f",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 127
  },
  "hsl": {
    "h": 332.778,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.57795,
    "c": 0.14861,
    "h": 354.4
  },
  "luminance": 0.1742
}

Semantic roles & 50–950 ramp

primary
#BA4E7F
secondary
#9ACAB4
accent
#D49A54
background
#FDF8FA
surface
#FAEFF4
border
#D3CACE
text
#140B0F
muted
#837C7F

Preview Lab

Preview with #BA4E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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