#BA4F8A#BA4F8A

#BA4F8A is a mid, vivid pink. Relative luminance 0.179; OKLCH L 58.3% C 0.153 H 348.7°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#BA4F8A
RGBrgb(186, 79, 138)
HSLhsl(327, 44%, 52%)
HSVhsv(327, 58%, 73%)
CMYKcmyk(0%, 57.5%, 25.8%, 27.1%)
CIE-LABlab(49.34, 49.61, -11.48)
CIE-LCHlch(49.34, 50.93, 346.97°)
OKLaboklab(58.33% 0.1498 -0.0301)
OKLCHoklch(58.33% 0.153 348.7)
XYZxyz(27.6341, 17.8686, 26.0334)
Luminance0.1787 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4F8A #4FBA7F
analogous
#B54FBA #BA4F8A #BA4F55
triadic
#BA4F8A #8ABA4F #4F8ABA
tetradic
#BA4F8A #BAB54F #4FBA7F #4F55BA
square
#BA4F8A #BAB54F #4FBA7F #4F55BA
split-complementary
#BA4F8A #55BA4F #4FBAB5
monochromatic
#66284B #92396A #BA4F8A #CB7BA7 #DCA7C4

Accessibility & contrast

On white

4.59
#BA4F8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#BA4F8A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA4F8A
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4F8A#FFFFFF#000000##FFFFFF
##BA4F8A1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B6A8C
Deuteranopia (green-blind)
#797C87
Tritanopia (blue-blind)
#C64C66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba4f8a;
/* rgb */ color: rgb(186, 79, 138);
/* oklch */ color: oklch(58.3% 0.153 348.7);
Tailwind
colors: {
  custom: {
    50: '#d285ac',
    500: '#ba4f8a',
    950: '#000000',
  },
}
SCSS
$custom: #ba4f8a;
$custom-light: #d285ac;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4f8a",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 138
  },
  "hsl": {
    "h": 326.916,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.58325,
    "c": 0.15278,
    "h": 348.7
  },
  "luminance": 0.17866
}

Semantic roles & 50–950 ramp

primary
#BA4F8A
secondary
#9BCAB0
accent
#D38D54
background
#FDF8FA
surface
#FAF0F4
border
#D3CBCE
text
#140B10
muted
#837C7F

Preview Lab

Preview with #BA4F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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