#BA2D8D#BA2D8D

#BA2D8D is a mid, vivid pink. Relative luminance 0.142; OKLCH L 54.9% C 0.199 H 344.0°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#BA2D8D
RGBrgb(186, 45, 141)
HSLhsl(319, 61%, 45%)
HSVhsv(319, 76%, 73%)
CMYKcmyk(0%, 75.8%, 24.2%, 27.1%)
CIE-LABlab(44.58, 63.45, -20.54)
CIE-LCHlch(44.58, 66.69, 342.06°)
OKLaboklab(54.87% 0.1918 -0.0548)
OKLCHoklch(54.87% 0.199 344)
XYZxyz(25.9968, 14.2418, 26.5740)
Luminance0.1424 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2D8D #2DBA5A
analogous
#A02DBA #BA2D8D #BA2D46
triadic
#BA2D8D #8DBA2D #2D8DBA
tetradic
#BA2D8D #BAA02D #2DBA5A #2D46BA
square
#BA2D8D #BAA02D #2DBA5A #2D46BA
split-complementary
#BA2D8D #46BA2D #2DBAA0
monochromatic
#571542 #892168 #BA2D8D #D550AA #E081C2

Accessibility & contrast

On white

5.46
#BA2D8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#BA2D8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2D8D
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2D8D#FFFFFF#000000##FFFFFF
##BA2D8D1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5A90
Deuteranopia (green-blind)
#69728A
Tritanopia (blue-blind)
#C62C5A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba2d8d;
/* rgb */ color: rgb(186, 45, 141);
/* oklch */ color: oklch(54.9% 0.199 344.0);
Tailwind
colors: {
  custom: {
    50: '#d374ae',
    500: '#ba2d8d',
    950: '#000000',
  },
}
SCSS
$custom: #ba2d8d;
$custom-light: #d374ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2d8d",
  "rgb": {
    "r": 186,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 319.149,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.54868,
    "c": 0.19947,
    "h": 344
  },
  "luminance": 0.14239
}

Semantic roles & 50–950 ramp

primary
#BA2D8D
secondary
#79C993
accent
#E47744
background
#FDF7FA
surface
#FBEEF4
border
#D4C9CE
text
#150910
muted
#837B7F

Preview Lab

Preview with #BA2D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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