#BA2898#BA2898

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

Color values

HEX#BA2898
RGBrgb(186, 40, 152)
HSLhsl(314, 65%, 44%)
HSVhsv(314, 78%, 73%)
CMYKcmyk(0%, 78.5%, 18.3%, 27.1%)
CIE-LABlab(44.56, 66.35, -27.22)
CIE-LCHlch(44.56, 71.72, 337.69°)
OKLaboklab(55.01% 0.1979 -0.0737)
OKLCHoklch(55.01% 0.211 339.6)
XYZxyz(26.6767, 14.2264, 31.0407)
Luminance0.1422 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2898 #28BA4A
analogous
#9328BA #BA2898 #BA284F
triadic
#BA2898 #98BA28 #2898BA
tetradic
#BA2898 #BA9328 #28BA4A #284FBA
square
#BA2898 #BA9328 #28BA4A #284FBA
split-complementary
#BA2898 #4FBA28 #28BA93
monochromatic
#551246 #881D6F #BA2898 #D848B6 #E27ACA

Accessibility & contrast

On white

5.46
#BA2898 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#BA2898 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2898
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2898#FFFFFF#000000##FFFFFF
##BA28981.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335B9B
Deuteranopia (green-blind)
#647195
Tritanopia (blue-blind)
#C52E5E
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba2898;
/* rgb */ color: rgb(186, 40, 152);
/* oklch */ color: oklch(55.0% 0.211 339.6);
Tailwind
colors: {
  custom: {
    50: '#d373b6',
    500: '#ba2898',
    950: '#000000',
  },
}
SCSS
$custom: #ba2898;
$custom-light: #d373b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2898",
  "rgb": {
    "r": 186,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 313.973,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55011,
    "c": 0.21115,
    "h": 339.6
  },
  "luminance": 0.14224
}

Semantic roles & 50–950 ramp

primary
#BA2898
secondary
#73CA88
accent
#E86740
background
#FDF7FB
surface
#FBEDF6
border
#D4C8D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA2898

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

Preview Lab → · Contrast checker → · Palette generator →

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