#BA4F8D#BA4F8D

#BA4F8D is a mid, vivid pink. Relative luminance 0.180; OKLCH L 58.4% C 0.155 H 347.1°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#BA4F8D
RGBrgb(186, 79, 141)
HSLhsl(325, 44%, 52%)
HSVhsv(325, 58%, 73%)
CMYKcmyk(0%, 57.5%, 24.2%, 27.1%)
CIE-LABlab(49.44, 50.03, -13.12)
CIE-LCHlch(49.44, 51.72, 345.31°)
OKLaboklab(58.44% 0.1506 -0.0345)
OKLCHoklch(58.44% 0.155 347.1)
XYZxyz(27.8543, 17.9567, 27.1931)
Luminance0.1795 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4F8D #4FBA7C
analogous
#B24FBA #BA4F8D #BA4F58
triadic
#BA4F8D #8DBA4F #4F8DBA
tetradic
#BA4F8D #BAB24F #4FBA7C #4F58BA
square
#BA4F8D #BAB24F #4FBA7C #4F58BA
split-complementary
#BA4F8D #58BA4F #4FBAB2
monochromatic
#66284C #92396D #BA4F8D #CB7BA9 #DCA7C6

Accessibility & contrast

On white

4.57
#BA4F8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#BA4F8D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4F8D
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4F8D#FFFFFF#000000##000000
##BA4F8D1.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A6A8F
Deuteranopia (green-blind)
#787C8A
Tritanopia (blue-blind)
#C64D68
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba4f8d;
/* rgb */ color: rgb(186, 79, 141);
/* oklch */ color: oklch(58.4% 0.155 347.1);
Tailwind
colors: {
  custom: {
    50: '#d285ae',
    500: '#ba4f8d',
    950: '#000000',
  },
}
SCSS
$custom: #ba4f8d;
$custom-light: #d285ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4f8d",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 141
  },
  "hsl": {
    "h": 325.234,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.5844,
    "c": 0.15453,
    "h": 347.1
  },
  "luminance": 0.17954
}

Semantic roles & 50–950 ramp

primary
#BA4F8D
secondary
#9BCAAF
accent
#D38A54
background
#FDF8FA
surface
#FAF0F4
border
#D3CBCE
text
#140B10
muted
#837C7F

Preview Lab

Preview with #BA4F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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