#BA2D8B#BA2D8B

#BA2D8B is a mid, vivid pink. Relative luminance 0.142; OKLCH L 54.8% C 0.198 H 344.9°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#BA2D8B
RGBrgb(186, 45, 139)
HSLhsl(320, 61%, 45%)
HSVhsv(320, 76%, 73%)
CMYKcmyk(0%, 75.8%, 25.3%, 27.1%)
CIE-LABlab(44.49, 63.20, -19.46)
CIE-LCHlch(44.49, 66.12, 342.89°)
OKLaboklab(54.78% 0.1914 -0.0518)
OKLCHoklch(54.78% 0.198 344.9)
XYZxyz(25.8494, 14.1828, 25.7973)
Luminance0.1418 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2D8B #2DBA5C
analogous
#A22DBA #BA2D8B #BA2D44
triadic
#BA2D8B #8BBA2D #2D8BBA
tetradic
#BA2D8B #BAA22D #2DBA5C #2D44BA
square
#BA2D8B #BAA22D #2DBA5C #2D44BA
split-complementary
#BA2D8B #44BA2D #2DBAA2
monochromatic
#571541 #892166 #BA2D8B #D550A8 #E081C1

Accessibility & contrast

On white

5.47
#BA2D8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#BA2D8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2D8B
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2D8B#FFFFFF#000000##FFFFFF
##BA2D8B1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5A8E
Deuteranopia (green-blind)
#6A7288
Tritanopia (blue-blind)
#C72B59
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba2d8b;
/* rgb */ color: rgb(186, 45, 139);
/* oklch */ color: oklch(54.8% 0.198 344.9);
Tailwind
colors: {
  custom: {
    50: '#d374ad',
    500: '#ba2d8b',
    950: '#000000',
  },
}
SCSS
$custom: #ba2d8b;
$custom-light: #d374ad;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2d8b",
  "rgb": {
    "r": 186,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 320,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.5478,
    "c": 0.1983,
    "h": 344.9
  },
  "luminance": 0.1418
}

Semantic roles & 50–950 ramp

primary
#BA2D8B
secondary
#79C994
accent
#E47944
background
#FDF7FA
surface
#FBEEF4
border
#D4C9CE
text
#150910
muted
#837B7F

Preview Lab

Preview with #BA2D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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