#BA4F98#BA4F98

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

Color values

HEX#BA4F98
RGBrgb(186, 79, 152)
HSLhsl(319, 44%, 52%)
HSVhsv(319, 58%, 73%)
CMYKcmyk(0%, 57.5%, 18.3%, 27.1%)
CIE-LABlab(49.86, 51.62, -19.03)
CIE-LCHlch(49.86, 55.02, 339.76°)
OKLaboklab(58.88% 0.1534 -0.0509)
OKLCHoklch(58.88% 0.162 341.6)
XYZxyz(28.7138, 18.3005, 31.7197)
Luminance0.1830 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4F98 #4FBA71
analogous
#A64FBA #BA4F98 #BA4F63
triadic
#BA4F98 #98BA4F #4F98BA
tetradic
#BA4F98 #BAA64F #4FBA71 #4F63BA
square
#BA4F98 #BAA64F #4FBA71 #4F63BA
split-complementary
#BA4F98 #63BA4F #4FBAA6
monochromatic
#662853 #923976 #BA4F98 #CB7BB2 #DCA7CB

Accessibility & contrast

On white

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

On black

4.66
#BA4F98 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4F98
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4F98#FFFFFF#000000##000000
##BA4F981.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#566C9A
Deuteranopia (green-blind)
#747D95
Tritanopia (blue-blind)
#C4506D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba4f98;
/* rgb */ color: rgb(186, 79, 152);
/* oklch */ color: oklch(58.9% 0.162 341.6);
Tailwind
colors: {
  custom: {
    50: '#d186b6',
    500: '#ba4f98',
    950: '#000000',
  },
}
SCSS
$custom: #ba4f98;
$custom-light: #d186b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4f98",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 152
  },
  "hsl": {
    "h": 319.065,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.58883,
    "c": 0.16166,
    "h": 341.6
  },
  "luminance": 0.18298
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA4F98

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

Preview Lab → · Contrast checker → · Palette generator →

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