#BA2C9F#BA2C9F

#BA2C9F is a mid, highly saturated pink. Relative luminance 0.147; OKLCH L 55.6% C 0.212 H 337.1°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#BA2C9F
RGBrgb(186, 44, 159)
HSLhsl(311, 62%, 45%)
HSVhsv(311, 76%, 73%)
CMYKcmyk(0%, 76.3%, 14.5%, 27.1%)
CIE-LABlab(45.28, 66.18, -30.28)
CIE-LCHlch(45.28, 72.78, 335.41°)
OKLaboklab(55.64% 0.1952 -0.0824)
OKLCHoklch(55.64% 0.212 337.1)
XYZxyz(27.4089, 14.7463, 34.1970)
Luminance0.1474 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2C9F #2CBA47
analogous
#8E2CBA #BA2C9F #BA2C58
triadic
#BA2C9F #9FBA2C #2C9FBA
tetradic
#BA2C9F #BA8E2C #2CBA47 #2C58BA
square
#BA2C9F #BA8E2C #2CBA47 #2C58BA
split-complementary
#BA2C9F #58BA2C #2CBA8E
monochromatic
#57154A #892075 #BA2C9F #D54EBB #E180CE

Accessibility & contrast

On white

5.32
#BA2C9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#BA2C9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2C9F
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2C9F#FFFFFF#000000##FFFFFF
##BA2C9F1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315DA2
Deuteranopia (green-blind)
#62739C
Tritanopia (blue-blind)
#C43563
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba2c9f;
/* rgb */ color: rgb(186, 44, 159);
/* oklch */ color: oklch(55.6% 0.212 337.1);
Tailwind
colors: {
  custom: {
    50: '#d375bb',
    500: '#ba2c9f',
    950: '#000000',
  },
}
SCSS
$custom: #ba2c9f;
$custom-light: #d375bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2c9f",
  "rgb": {
    "r": 186,
    "g": 44,
    "b": 159
  },
  "hsl": {
    "h": 311.408,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55644,
    "c": 0.21187,
    "h": 337.1
  },
  "luminance": 0.14744
}

Semantic roles & 50–950 ramp

primary
#BA2C9F
secondary
#78CA88
accent
#E56243
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA2C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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