#BA2D99#BA2D99

#BA2D99 is a mid, highly saturated pink. Relative luminance 0.146; OKLCH L 55.4% C 0.207 H 339.3°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#BA2D99
RGBrgb(186, 45, 153)
HSLhsl(314, 61%, 45%)
HSVhsv(314, 76%, 73%)
CMYKcmyk(0%, 75.8%, 17.7%, 27.1%)
CIE-LABlab(45.11, 65.04, -26.97)
CIE-LCHlch(45.11, 70.41, 337.48°)
OKLaboklab(55.42% 0.1936 -0.073)
OKLCHoklch(55.42% 0.207 339.3)
XYZxyz(26.9386, 14.6184, 31.5337)
Luminance0.1462 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2D99 #2DBA4E
analogous
#952DBA #BA2D99 #BA2D52
triadic
#BA2D99 #99BA2D #2D99BA
tetradic
#BA2D99 #BA952D #2DBA4E #2D52BA
square
#BA2D99 #BA952D #2DBA4E #2D52BA
split-complementary
#BA2D99 #52BA2D #2DBA95
monochromatic
#571548 #892170 #BA2D99 #D550B5 #E081CA

Accessibility & contrast

On white

5.35
#BA2D99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#BA2D99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2D99
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2D99#FFFFFF#000000##FFFFFF
##BA2D991.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365D9C
Deuteranopia (green-blind)
#657396
Tritanopia (blue-blind)
#C53360
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba2d99;
/* rgb */ color: rgb(186, 45, 153);
/* oklch */ color: oklch(55.4% 0.207 339.3);
Tailwind
colors: {
  custom: {
    50: '#d375b7',
    500: '#ba2d99',
    950: '#000000',
  },
}
SCSS
$custom: #ba2d99;
$custom-light: #d375b7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2d99",
  "rgb": {
    "r": 186,
    "g": 45,
    "b": 153
  },
  "hsl": {
    "h": 314.043,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.55424,
    "c": 0.20691,
    "h": 339.3
  },
  "luminance": 0.14616
}

Semantic roles & 50–950 ramp

primary
#BA2D99
secondary
#79C98C
accent
#E46944
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA2D99

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

Preview Lab → · Contrast checker → · Palette generator →

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