#BA2C98#BA2C98

#BA2C98 is a mid, highly saturated pink. Relative luminance 0.145; OKLCH L 55.3% C 0.207 H 339.7°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#BA2C98
RGBrgb(186, 44, 152)
HSLhsl(314, 62%, 45%)
HSVhsv(314, 76%, 73%)
CMYKcmyk(0%, 76.3%, 18.3%, 27.1%)
CIE-LABlab(44.96, 65.21, -26.60)
CIE-LCHlch(44.96, 70.42, 337.81°)
OKLaboklab(55.3% 0.1944 -0.0719)
OKLCHoklch(55.3% 0.207 339.7)
XYZxyz(26.8186, 14.5101, 31.0880)
Luminance0.1451 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2C98 #2CBA4E
analogous
#952CBA #BA2C98 #BA2C51
triadic
#BA2C98 #98BA2C #2C98BA
tetradic
#BA2C98 #BA952C #2CBA4E #2C51BA
square
#BA2C98 #BA952C #2CBA4E #2C51BA
split-complementary
#BA2C98 #51BA2C #2CBA95
monochromatic
#571547 #892070 #BA2C98 #D54EB5 #E180CA

Accessibility & contrast

On white

5.38
#BA2C98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#BA2C98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2C98
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2C98#FFFFFF#000000##FFFFFF
##BA2C981.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365C9B
Deuteranopia (green-blind)
#657295
Tritanopia (blue-blind)
#C5315F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba2c98;
/* rgb */ color: rgb(186, 44, 152);
/* oklch */ color: oklch(55.3% 0.207 339.7);
Tailwind
colors: {
  custom: {
    50: '#d374b6',
    500: '#ba2c98',
    950: '#000000',
  },
}
SCSS
$custom: #ba2c98;
$custom-light: #d374b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2c98",
  "rgb": {
    "r": 186,
    "g": 44,
    "b": 152
  },
  "hsl": {
    "h": 314.366,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.553,
    "c": 0.20728,
    "h": 339.7
  },
  "luminance": 0.14507
}

Semantic roles & 50–950 ramp

primary
#BA2C98
secondary
#78CA8C
accent
#E56A43
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA2C98

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

Preview Lab → · Contrast checker → · Palette generator →

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