#BA4798#BA4798

#BA4798 is a mid, vivid pink. Relative luminance 0.172; OKLCH L 57.9% C 0.174 H 341.0°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#BA4798
RGBrgb(186, 71, 152)
HSLhsl(318, 45%, 50%)
HSVhsv(318, 62%, 73%)
CMYKcmyk(0%, 61.8%, 18.3%, 27.1%)
CIE-LABlab(48.53, 55.22, -21.07)
CIE-LCHlch(48.53, 59.11, 339.11°)
OKLaboklab(57.9% 0.1642 -0.0565)
OKLCHoklch(57.9% 0.174 341)
XYZxyz(28.1711, 17.2151, 31.5388)
Luminance0.1721 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4798 #47BA69
analogous
#A247BA #BA4798 #BA475E
triadic
#BA4798 #98BA47 #4798BA
tetradic
#BA4798 #BAA247 #47BA69 #475EBA
square
#BA4798 #BAA247 #47BA69 #475EBA
split-complementary
#BA4798 #5EBA47 #47BAA2
monochromatic
#622550 #8E3574 #BA4798 #CB74B1 #DBA0CA

Accessibility & contrast

On white

4.73
#BA4798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#BA4798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA4798
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4798#FFFFFF#000000##FFFFFF
##BA47981.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E679A
Deuteranopia (green-blind)
#707A95
Tritanopia (blue-blind)
#C54969
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba4798;
/* rgb */ color: rgb(186, 71, 152);
/* oklch */ color: oklch(57.9% 0.174 341.0);
Tailwind
colors: {
  custom: {
    50: '#d281b6',
    500: '#ba4798',
    950: '#000000',
  },
}
SCSS
$custom: #ba4798;
$custom-light: #d281b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4798",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 152
  },
  "hsl": {
    "h": 317.739,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.57904,
    "c": 0.1737,
    "h": 341
  },
  "luminance": 0.17213
}

Semantic roles & 50–950 ramp

primary
#BA4798
secondary
#95C8A4
accent
#D57953
background
#FDF8FB
surface
#FAEFF6
border
#D3CAD0
text
#140B11
muted
#837C80

Preview Lab

Preview with #BA4798

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

Preview Lab → · Contrast checker → · Palette generator →

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