#BA4E7C#BA4E7C

#BA4E7C is a mid, vivid pink. Relative luminance 0.173; OKLCH L 57.7% C 0.147 H 356.1°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#BA4E7C
RGBrgb(186, 78, 124)
HSLhsl(334, 44%, 52%)
HSVhsv(334, 58%, 73%)
CMYKcmyk(0%, 58.1%, 33.3%, 27.1%)
CIE-LABlab(48.69, 48.26, -4.04)
CIE-LCHlch(48.69, 48.43, 355.22°)
OKLaboklab(57.69% 0.1469 -0.01)
OKLCHoklch(57.69% 0.147 356.1)
XYZxyz(26.6135, 17.3458, 21.0114)
Luminance0.1734 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4E7C #4EBA8C
analogous
#BA4EB2 #BA4E7C #BA564E
triadic
#BA4E7C #7CBA4E #4E7CBA
tetradic
#BA4E7C #B2BA4E #4EBA8C #564EBA
square
#BA4E7C #B2BA4E #4EBA8C #564EBA
split-complementary
#BA4E7C #4EBA56 #4EB2BA
monochromatic
#662842 #92395F #BA4E7C #CB7A9D #DCA6BD

Accessibility & contrast

On white

4.70
#BA4E7C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#BA4E7C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA4E7C
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4E7C#FFFFFF#000000##FFFFFF
##BA4E7C1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F677D
Deuteranopia (green-blind)
#7C7B79
Tritanopia (blue-blind)
#C84760
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba4e7c;
/* rgb */ color: rgb(186, 78, 124);
/* oklch */ color: oklch(57.7% 0.147 356.1);
Tailwind
colors: {
  custom: {
    50: '#d284a1',
    500: '#ba4e7c',
    950: '#000000',
  },
}
SCSS
$custom: #ba4e7c;
$custom-light: #d284a1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4e7c",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 124
  },
  "hsl": {
    "h": 334.444,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.57693,
    "c": 0.14728,
    "h": 356.1
  },
  "luminance": 0.17343
}

Semantic roles & 50–950 ramp

primary
#BA4E7C
secondary
#9ACAB5
accent
#D49D54
background
#FDF8F9
surface
#FAEFF2
border
#D3CACC
text
#150B0F
muted
#837C7E

Preview Lab

Preview with #BA4E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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