#BA4E98#BA4E98

#BA4E98 is a mid, vivid pink. Relative luminance 0.182; OKLCH L 58.8% C 0.163 H 341.6°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#BA4E98
RGBrgb(186, 78, 152)
HSLhsl(319, 44%, 52%)
HSVhsv(319, 58%, 73%)
CMYKcmyk(0%, 58.1%, 18.3%, 27.1%)
CIE-LABlab(49.69, 52.09, -19.30)
CIE-LCHlch(49.69, 55.55, 339.67°)
OKLaboklab(58.76% 0.1548 -0.0516)
OKLCHoklch(58.76% 0.163 341.6)
XYZxyz(28.6422, 18.1573, 31.6959)
Luminance0.1815 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4E98 #4EBA70
analogous
#A64EBA #BA4E98 #BA4E62
triadic
#BA4E98 #98BA4E #4E98BA
tetradic
#BA4E98 #BAA64E #4EBA70 #4E62BA
square
#BA4E98 #BAA64E #4EBA70 #4E62BA
split-complementary
#BA4E98 #62BA4E #4EBAA6
monochromatic
#662852 #923976 #BA4E98 #CB7AB2 #DCA6CB

Accessibility & contrast

On white

4.53
#BA4E98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#BA4E98 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4E98
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4E98#FFFFFF#000000##000000
##BA4E981.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#556B9A
Deuteranopia (green-blind)
#747D95
Tritanopia (blue-blind)
#C44F6C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba4e98;
/* rgb */ color: rgb(186, 78, 152);
/* oklch */ color: oklch(58.8% 0.163 341.6);
Tailwind
colors: {
  custom: {
    50: '#d285b6',
    500: '#ba4e98',
    950: '#000000',
  },
}
SCSS
$custom: #ba4e98;
$custom-light: #d285b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4e98",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 152
  },
  "hsl": {
    "h": 318.889,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.58756,
    "c": 0.1632,
    "h": 341.6
  },
  "luminance": 0.18155
}

Semantic roles & 50–950 ramp

primary
#BA4E98
secondary
#9ACAA9
accent
#D47C54
background
#FDF8FB
surface
#FAF0F6
border
#D3CBD0
text
#140B11
muted
#837C80

Preview Lab

Preview with #BA4E98

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

Preview Lab → · Contrast checker → · Palette generator →

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