#BA2798#BA2798

#BA2798 is a mid, highly saturated pink. Relative luminance 0.142; OKLCH L 54.9% C 0.212 H 339.6°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#BA2798
RGBrgb(186, 39, 152)
HSLhsl(314, 65%, 44%)
HSVhsv(314, 79%, 73%)
CMYKcmyk(0%, 79%, 18.3%, 27.1%)
CIE-LABlab(44.46, 66.62, -27.37)
CIE-LCHlch(44.46, 72.03, 337.67°)
OKLaboklab(54.94% 0.1987 -0.0741)
OKLCHoklch(54.94% 0.212 339.6)
XYZxyz(26.6435, 14.1598, 31.0296)
Luminance0.1416 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2798 #27BA49
analogous
#9327BA #BA2798 #BA274E
triadic
#BA2798 #98BA27 #2798BA
tetradic
#BA2798 #BA9327 #27BA49 #274EBA
square
#BA2798 #BA9327 #27BA49 #274EBA
split-complementary
#BA2798 #4EBA27 #27BA93
monochromatic
#551245 #871C6F #BA2798 #D846B6 #E379CA

Accessibility & contrast

On white

5.48
#BA2798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#BA2798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2798
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2798#FFFFFF#000000##FFFFFF
##BA27981.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325A9B
Deuteranopia (green-blind)
#647195
Tritanopia (blue-blind)
#C52D5E
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba2798;
/* rgb */ color: rgb(186, 39, 152);
/* oklch */ color: oklch(54.9% 0.212 339.6);
Tailwind
colors: {
  custom: {
    50: '#d372b6',
    500: '#ba2798',
    950: '#000000',
  },
}
SCSS
$custom: #ba2798;
$custom-light: #d372b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2798",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 313.878,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.54943,
    "c": 0.21206,
    "h": 339.6
  },
  "luminance": 0.14157
}

Semantic roles & 50–950 ramp

primary
#BA2798
secondary
#72CB87
accent
#E86740
background
#FDF7FB
surface
#FBEDF6
border
#D4C8D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA2798

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

Preview Lab → · Contrast checker → · Palette generator →

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