#BA4F97#BA4F97

#BA4F97 is a mid, vivid pink. Relative luminance 0.183; OKLCH L 58.8% C 0.161 H 342.1°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#BA4F97
RGBrgb(186, 79, 151)
HSLhsl(320, 44%, 52%)
HSVhsv(320, 58%, 73%)
CMYKcmyk(0%, 57.5%, 18.8%, 27.1%)
CIE-LABlab(49.82, 51.47, -18.50)
CIE-LCHlch(49.82, 54.70, 340.23°)
OKLaboklab(58.84% 0.1532 -0.0494)
OKLCHoklch(58.84% 0.161 342.1)
XYZxyz(28.6322, 18.2679, 31.2902)
Luminance0.1827 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4F97 #4FBA72
analogous
#A74FBA #BA4F97 #BA4F62
triadic
#BA4F97 #97BA4F #4F97BA
tetradic
#BA4F97 #BAA74F #4FBA72 #4F62BA
square
#BA4F97 #BAA74F #4FBA72 #4F62BA
split-complementary
#BA4F97 #62BA4F #4FBAA7
monochromatic
#662852 #923975 #BA4F97 #CB7BB1 #DCA7CB

Accessibility & contrast

On white

4.51
#BA4F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#BA4F97 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4F97
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4F97#FFFFFF#000000##000000
##BA4F971.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#566B99
Deuteranopia (green-blind)
#757D94
Tritanopia (blue-blind)
#C4506C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba4f97;
/* rgb */ color: rgb(186, 79, 151);
/* oklch */ color: oklch(58.8% 0.161 342.1);
Tailwind
colors: {
  custom: {
    50: '#d185b5',
    500: '#ba4f97',
    950: '#000000',
  },
}
SCSS
$custom: #ba4f97;
$custom-light: #d185b5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4f97",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 151
  },
  "hsl": {
    "h": 319.626,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.58842,
    "c": 0.16096,
    "h": 342.1
  },
  "luminance": 0.18265
}

Semantic roles & 50–950 ramp

primary
#BA4F97
secondary
#9BCAAA
accent
#D37E54
background
#FDF8FB
surface
#FAF0F6
border
#D3CBD0
text
#140B11
muted
#837C80

Preview Lab

Preview with #BA4F97

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

Preview Lab → · Contrast checker → · Palette generator →

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