#BA4E7B#BA4E7B

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

Color values

HEX#BA4E7B
RGBrgb(186, 78, 123)
HSLhsl(335, 44%, 52%)
HSVhsv(335, 58%, 73%)
CMYKcmyk(0%, 58.1%, 33.9%, 27.1%)
CIE-LABlab(48.66, 48.14, -3.48)
CIE-LCHlch(48.66, 48.26, 355.87°)
OKLaboklab(57.66% 0.1466 -0.0085)
OKLCHoklch(57.66% 0.147 356.7)
XYZxyz(26.5506, 17.3207, 20.6800)
Luminance0.1732 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4E7B #4EBA8D
analogous
#BA4EB1 #BA4E7B #BA574E
triadic
#BA4E7B #7BBA4E #4E7BBA
tetradic
#BA4E7B #B1BA4E #4EBA8D #574EBA
square
#BA4E7B #B1BA4E #4EBA8D #574EBA
split-complementary
#BA4E7B #4EBA57 #4EB1BA
monochromatic
#662842 #92395E #BA4E7B #CB7A9C #DCA6BD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA4E7B#FFFFFF#000000##FFFFFF
##BA4E7B1.004.704.464.70
#FFFFFF4.701.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F677C
Deuteranopia (green-blind)
#7C7B78
Tritanopia (blue-blind)
#C8465F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba4e7b;
/* rgb */ color: rgb(186, 78, 123);
/* oklch */ color: oklch(57.7% 0.147 356.7);
Tailwind
colors: {
  custom: {
    50: '#d284a1',
    500: '#ba4e7b',
    950: '#000000',
  },
}
SCSS
$custom: #ba4e7b;
$custom-light: #d284a1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4e7b",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 123
  },
  "hsl": {
    "h": 335,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.57659,
    "c": 0.14685,
    "h": 356.7
  },
  "luminance": 0.17318
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA4E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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