#BA2C97#BA2C97

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

Color values

HEX#BA2C97
RGBrgb(186, 44, 151)
HSLhsl(315, 62%, 45%)
HSVhsv(315, 76%, 73%)
CMYKcmyk(0%, 76.3%, 18.8%, 27.1%)
CIE-LABlab(44.91, 65.07, -26.07)
CIE-LCHlch(44.91, 70.10, 338.17°)
OKLaboklab(55.25% 0.1943 -0.0704)
OKLCHoklch(55.25% 0.207 340.1)
XYZxyz(26.7371, 14.4775, 30.6585)
Luminance0.1447 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2C97 #2CBA4F
analogous
#962CBA #BA2C97 #BA2C50
triadic
#BA2C97 #97BA2C #2C97BA
tetradic
#BA2C97 #BA962C #2CBA4F #2C50BA
square
#BA2C97 #BA962C #2CBA4F #2C50BA
split-complementary
#BA2C97 #50BA2C #2CBA96
monochromatic
#571547 #89206F #BA2C97 #D54EB4 #E180C9

Accessibility & contrast

On white

5.39
#BA2C97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#BA2C97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2C97
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2C97#FFFFFF#000000##FFFFFF
##BA2C971.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375C9A
Deuteranopia (green-blind)
#657294
Tritanopia (blue-blind)
#C5315F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba2c97;
/* rgb */ color: rgb(186, 44, 151);
/* oklch */ color: oklch(55.3% 0.207 340.1);
Tailwind
colors: {
  custom: {
    50: '#d374b6',
    500: '#ba2c97',
    950: '#000000',
  },
}
SCSS
$custom: #ba2c97;
$custom-light: #d374b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2c97",
  "rgb": {
    "r": 186,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 314.789,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55252,
    "c": 0.20664,
    "h": 340.1
  },
  "luminance": 0.14475
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA2C97

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

Preview Lab → · Contrast checker → · Palette generator →

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