#BA2998#BA2998

#BA2998 is a mid, highly saturated pink. Relative luminance 0.143; OKLCH L 55.1% C 0.210 H 339.6°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#BA2998
RGBrgb(186, 41, 152)
HSLhsl(314, 64%, 45%)
HSVhsv(314, 78%, 73%)
CMYKcmyk(0%, 78%, 18.3%, 27.1%)
CIE-LABlab(44.65, 66.07, -27.07)
CIE-LCHlch(44.65, 71.40, 337.72°)
OKLaboklab(55.08% 0.197 -0.0732)
OKLCHoklch(55.08% 0.21 339.6)
XYZxyz(26.7109, 14.2947, 31.0521)
Luminance0.1429 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2998 #29BA4B
analogous
#9429BA #BA2998 #BA2950
triadic
#BA2998 #98BA29 #2998BA
tetradic
#BA2998 #BA9429 #29BA4B #2950BA
square
#BA2998 #BA9429 #29BA4B #2950BA
split-complementary
#BA2998 #50BA29 #29BA94
monochromatic
#561346 #881E6F #BA2998 #D749B6 #E27BCA

Accessibility & contrast

On white

5.44
#BA2998 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#BA2998 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2998
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2998#FFFFFF#000000##FFFFFF
##BA29981.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345B9B
Deuteranopia (green-blind)
#647295
Tritanopia (blue-blind)
#C52F5E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba2998;
/* rgb */ color: rgb(186, 41, 152);
/* oklch */ color: oklch(55.1% 0.210 339.6);
Tailwind
colors: {
  custom: {
    50: '#d373b6',
    500: '#ba2998',
    950: '#000000',
  },
}
SCSS
$custom: #ba2998;
$custom-light: #d373b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2998",
  "rgb": {
    "r": 186,
    "g": 41,
    "b": 152
  },
  "hsl": {
    "h": 314.069,
    "s": 63.877,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55081,
    "c": 0.21021,
    "h": 339.6
  },
  "luminance": 0.14292
}

Semantic roles & 50–950 ramp

primary
#BA2998
secondary
#75CA89
accent
#E76841
background
#FDF7FB
surface
#FBEDF6
border
#D4C8D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA2998

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

Preview Lab → · Contrast checker → · Palette generator →

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