#BA2D9D#BA2D9D

#BA2D9D is a mid, highly saturated pink. Relative luminance 0.147; OKLCH L 55.6% C 0.210 H 337.9°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#BA2D9D
RGBrgb(186, 45, 157)
HSLhsl(312, 61%, 45%)
HSVhsv(312, 76%, 73%)
CMYKcmyk(0%, 75.8%, 15.6%, 27.1%)
CIE-LABlab(45.29, 65.60, -29.07)
CIE-LCHlch(45.29, 71.75, 336.10°)
OKLaboklab(55.62% 0.1941 -0.079)
OKLCHoklch(55.62% 0.21 337.9)
XYZxyz(27.2745, 14.7528, 33.3029)
Luminance0.1475 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2D9D #2DBA4A
analogous
#902DBA #BA2D9D #BA2D57
triadic
#BA2D9D #9DBA2D #2D9DBA
tetradic
#BA2D9D #BA902D #2DBA4A #2D57BA
square
#BA2D9D #BA902D #2DBA4A #2D57BA
split-complementary
#BA2D9D #57BA2D #2DBA90
monochromatic
#57154A #892173 #BA2D9D #D550B9 #E081CD

Accessibility & contrast

On white

5.32
#BA2D9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#BA2D9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2D9D
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2D9D#FFFFFF#000000##FFFFFF
##BA2D9D1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335DA0
Deuteranopia (green-blind)
#63739A
Tritanopia (blue-blind)
#C43562
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba2d9d;
/* rgb */ color: rgb(186, 45, 157);
/* oklch */ color: oklch(55.6% 0.210 337.9);
Tailwind
colors: {
  custom: {
    50: '#d375ba',
    500: '#ba2d9d',
    950: '#000000',
  },
}
SCSS
$custom: #ba2d9d;
$custom-light: #d375ba;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2d9d",
  "rgb": {
    "r": 186,
    "g": 45,
    "b": 157
  },
  "hsl": {
    "h": 312.34,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.5562,
    "c": 0.20953,
    "h": 337.9
  },
  "luminance": 0.1475
}

Semantic roles & 50–950 ramp

primary
#BA2D9D
secondary
#79C98A
accent
#E46544
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA2D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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