#BA4E8D#BA4E8D

#BA4E8D is a mid, vivid pink. Relative luminance 0.178; OKLCH L 58.3% C 0.156 H 347.0°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#BA4E8D
RGBrgb(186, 78, 141)
HSLhsl(325, 44%, 52%)
HSVhsv(325, 58%, 73%)
CMYKcmyk(0%, 58.1%, 24.2%, 27.1%)
CIE-LABlab(49.27, 50.50, -13.38)
CIE-LCHlch(49.27, 52.24, 345.16°)
OKLaboklab(58.31% 0.1521 -0.0352)
OKLCHoklch(58.31% 0.156 347)
XYZxyz(27.7827, 17.8135, 27.1693)
Luminance0.1781 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4E8D #4EBA7B
analogous
#B14EBA #BA4E8D #BA4E57
triadic
#BA4E8D #8DBA4E #4E8DBA
tetradic
#BA4E8D #BAB14E #4EBA7B #4E57BA
square
#BA4E8D #BAB14E #4EBA7B #4E57BA
split-complementary
#BA4E8D #57BA4E #4EBAB1
monochromatic
#66284C #92396D #BA4E8D #CB7AA9 #DCA6C6

Accessibility & contrast

On white

4.60
#BA4E8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#BA4E8D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA4E8D
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4E8D#FFFFFF#000000##FFFFFF
##BA4E8D1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#59698F
Deuteranopia (green-blind)
#777C8A
Tritanopia (blue-blind)
#C64C67
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba4e8d;
/* rgb */ color: rgb(186, 78, 141);
/* oklch */ color: oklch(58.3% 0.156 347.0);
Tailwind
colors: {
  custom: {
    50: '#d285ae',
    500: '#ba4e8d',
    950: '#000000',
  },
}
SCSS
$custom: #ba4e8d;
$custom-light: #d285ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4e8d",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 141
  },
  "hsl": {
    "h": 325,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.5831,
    "c": 0.15609,
    "h": 347
  },
  "luminance": 0.17811
}

Semantic roles & 50–950 ramp

primary
#BA4E8D
secondary
#9ACAAE
accent
#D48954
background
#FDF8FA
surface
#FAF0F4
border
#D3CBCE
text
#140B10
muted
#837C7F

Preview Lab

Preview with #BA4E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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