#BA2D7E#BA2D7E

#BA2D7E is a mid, vivid pink. Relative luminance 0.138; OKLCH L 54.2% C 0.191 H 350.4°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#BA2D7E
RGBrgb(186, 45, 126)
HSLhsl(326, 61%, 45%)
HSVhsv(326, 76%, 73%)
CMYKcmyk(0%, 75.8%, 32.3%, 27.1%)
CIE-LABlab(43.98, 61.63, -12.30)
CIE-LCHlch(43.98, 62.84, 348.71°)
OKLaboklab(54.24% 0.1886 -0.032)
OKLCHoklch(54.24% 0.191 350.4)
XYZxyz(24.9554, 13.8252, 21.0890)
Luminance0.1382 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2D7E #2DBA69
analogous
#AF2DBA #BA2D7E #BA2D37
triadic
#BA2D7E #7EBA2D #2D7EBA
tetradic
#BA2D7E #BAAF2D #2DBA69 #2D37BA
square
#BA2D7E #BAAF2D #2DBA69 #2D37BA
split-complementary
#BA2D7E #37BA2D #2DBAAF
monochromatic
#57153B #89215D #BA2D7E #D5509C #E081B8

Accessibility & contrast

On white

5.58
#BA2D7E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#BA2D7E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2D7E
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2D7E#FFFFFF#000000##FFFFFF
##BA2D7E1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455880
Deuteranopia (green-blind)
#6E717B
Tritanopia (blue-blind)
#C82352
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ba2d7e;
/* rgb */ color: rgb(186, 45, 126);
/* oklch */ color: oklch(54.2% 0.191 350.4);
Tailwind
colors: {
  custom: {
    50: '#d374a3',
    500: '#ba2d7e',
    950: '#000000',
  },
}
SCSS
$custom: #ba2d7e;
$custom-light: #d374a3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2d7e",
  "rgb": {
    "r": 186,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 325.532,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.54239,
    "c": 0.19126,
    "h": 350.4
  },
  "luminance": 0.13822
}

Semantic roles & 50–950 ramp

primary
#BA2D7E
secondary
#79C99B
accent
#E48844
background
#FDF7FA
surface
#FBEDF3
border
#D4C8CD
text
#15090F
muted
#837B7F

Preview Lab

Preview with #BA2D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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