#BA2F7A#BA2F7A

#BA2F7A is a mid, vivid pink. Relative luminance 0.139; OKLCH L 54.3% C 0.187 H 352.3°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#BA2F7A
RGBrgb(186, 47, 122)
HSLhsl(328, 60%, 46%)
HSVhsv(328, 75%, 73%)
CMYKcmyk(0%, 74.7%, 34.4%, 27.1%)
CIE-LABlab(44.06, 60.54, -9.72)
CIE-LCHlch(44.06, 61.31, 350.88°)
OKLaboklab(54.25% 0.1855 -0.025)
OKLCHoklch(54.25% 0.187 352.3)
XYZxyz(24.7806, 13.8802, 19.7828)
Luminance0.1388 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2F7A #2FBA6F
analogous
#B42FBA #BA2F7A #BA2F34
triadic
#BA2F7A #7ABA2F #2F7ABA
tetradic
#BA2F7A #BAB42F #2FBA6F #2F34BA
square
#BA2F7A #BAB42F #2FBA6F #2F34BA
split-complementary
#BA2F7A #34BA2F #2FBAB4
monochromatic
#58163A #89235A #BA2F7A #D35398 #E084B5

Accessibility & contrast

On white

5.56
#BA2F7A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#BA2F7A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2F7A
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2F7A#FFFFFF#000000##FFFFFF
##BA2F7A1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#48587C
Deuteranopia (green-blind)
#6F7177
Tritanopia (blue-blind)
#C82350
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ba2f7a;
/* rgb */ color: rgb(186, 47, 122);
/* oklch */ color: oklch(54.3% 0.187 352.3);
Tailwind
colors: {
  custom: {
    50: '#d375a0',
    500: '#ba2f7a',
    950: '#000000',
  },
}
SCSS
$custom: #ba2f7a;
$custom-light: #d375a0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2f7a",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 122
  },
  "hsl": {
    "h": 327.626,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.5425,
    "c": 0.18719,
    "h": 352.3
  },
  "luminance": 0.13877
}

Semantic roles & 50–950 ramp

primary
#BA2F7A
secondary
#7CC99F
accent
#E38E45
background
#FDF7F9
surface
#FBEDF2
border
#D4C8CC
text
#15090E
muted
#837B7E

Preview Lab

Preview with #BA2F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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