#BA4F99#BA4F99

#BA4F99 is a mid, vivid pink. Relative luminance 0.183; OKLCH L 58.9% C 0.162 H 341.2°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#BA4F99
RGBrgb(186, 79, 153)
HSLhsl(319, 44%, 52%)
HSVhsv(319, 58%, 73%)
CMYKcmyk(0%, 57.5%, 17.7%, 27.1%)
CIE-LABlab(49.90, 51.77, -19.57)
CIE-LCHlch(49.90, 55.35, 339.30°)
OKLaboklab(58.93% 0.1537 -0.0524)
OKLCHoklch(58.93% 0.162 341.2)
XYZxyz(28.7960, 18.3334, 32.1529)
Luminance0.1833 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4F99 #4FBA70
analogous
#A64FBA #BA4F99 #BA4F64
triadic
#BA4F99 #99BA4F #4F99BA
tetradic
#BA4F99 #BAA64F #4FBA70 #4F64BA
square
#BA4F99 #BAA64F #4FBA70 #4F64BA
split-complementary
#BA4F99 #64BA4F #4FBAA6
monochromatic
#662853 #923977 #BA4F99 #CB7BB2 #DCA7CC

Accessibility & contrast

On white

4.50
#BA4F99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#BA4F99 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4F99
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4F99#FFFFFF#000000##000000
##BA4F991.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#556C9B
Deuteranopia (green-blind)
#747D96
Tritanopia (blue-blind)
#C4516D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba4f99;
/* rgb */ color: rgb(186, 79, 153);
/* oklch */ color: oklch(58.9% 0.162 341.2);
Tailwind
colors: {
  custom: {
    50: '#d186b7',
    500: '#ba4f99',
    950: '#000000',
  },
}
SCSS
$custom: #ba4f99;
$custom-light: #d186b7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4f99",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 153
  },
  "hsl": {
    "h": 318.505,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.58926,
    "c": 0.16235,
    "h": 341.2
  },
  "luminance": 0.18331
}

Semantic roles & 50–950 ramp

primary
#BA4F99
secondary
#9BCAA9
accent
#D37C54
background
#FDF8FB
surface
#FAF0F6
border
#D3CBD0
text
#140B11
muted
#837C80

Preview Lab

Preview with #BA4F99

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

Preview Lab → · Contrast checker → · Palette generator →

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