#BA2D7B#BA2D7B

#BA2D7B is a mid, vivid pink. Relative luminance 0.137; OKLCH L 54.1% C 0.190 H 351.7°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#BA2D7B
RGBrgb(186, 45, 123)
HSLhsl(327, 61%, 45%)
HSVhsv(327, 76%, 73%)
CMYKcmyk(0%, 75.8%, 33.9%, 27.1%)
CIE-LABlab(43.87, 61.29, -10.62)
CIE-LCHlch(43.87, 62.20, 350.17°)
OKLaboklab(54.12% 0.1878 -0.0275)
OKLCHoklch(54.12% 0.19 351.7)
XYZxyz(24.7647, 13.7489, 20.0847)
Luminance0.1375 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2D7B #2DBA6C
analogous
#B32DBA #BA2D7B #BA2D34
triadic
#BA2D7B #7BBA2D #2D7BBA
tetradic
#BA2D7B #BAB32D #2DBA6C #2D34BA
square
#BA2D7B #BAB32D #2DBA6C #2D34BA
split-complementary
#BA2D7B #34BA2D #2DBAB3
monochromatic
#57153A #89215A #BA2D7B #D55099 #E081B6

Accessibility & contrast

On white

5.60
#BA2D7B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#BA2D7B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2D7B
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2D7B#FFFFFF#000000##FFFFFF
##BA2D7B1.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#46587D
Deuteranopia (green-blind)
#6F7178
Tritanopia (blue-blind)
#C82150
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ba2d7b;
/* rgb */ color: rgb(186, 45, 123);
/* oklch */ color: oklch(54.1% 0.190 351.7);
Tailwind
colors: {
  custom: {
    50: '#d374a1',
    500: '#ba2d7b',
    950: '#000000',
  },
}
SCSS
$custom: #ba2d7b;
$custom-light: #d374a1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2d7b",
  "rgb": {
    "r": 186,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 326.809,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.54122,
    "c": 0.18979,
    "h": 351.7
  },
  "luminance": 0.13746
}

Semantic roles & 50–950 ramp

primary
#BA2D7B
secondary
#79C99D
accent
#E48B44
background
#FDF7F9
surface
#FBEDF2
border
#D4C8CC
text
#15090E
muted
#837B7E

Preview Lab

Preview with #BA2D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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