#BA2791#BA2791

#BA2791 is a mid, highly saturated pink. Relative luminance 0.139; OKLCH L 54.6% C 0.208 H 342.2°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#BA2791
RGBrgb(186, 39, 145)
HSLhsl(317, 65%, 44%)
HSVhsv(317, 79%, 73%)
CMYKcmyk(0%, 79%, 22%, 27.1%)
CIE-LABlab(44.14, 65.70, -23.64)
CIE-LCHlch(44.14, 69.82, 340.21°)
OKLaboklab(54.61% 0.1978 -0.0635)
OKLCHoklch(54.61% 0.208 342.2)
XYZxyz(26.0870, 13.9372, 28.0989)
Luminance0.1393 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2791 #27BA50
analogous
#9A27BA #BA2791 #BA2748
triadic
#BA2791 #91BA27 #2791BA
tetradic
#BA2791 #BA9A27 #27BA50 #2748BA
square
#BA2791 #BA9A27 #27BA50 #2748BA
split-complementary
#BA2791 #48BA27 #27BA9A
monochromatic
#551242 #871C6A #BA2791 #D846AF #E379C5

Accessibility & contrast

On white

5.55
#BA2791 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#BA2791 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2791
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2791#FFFFFF#000000##FFFFFF
##BA27911.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375994
Deuteranopia (green-blind)
#66718E
Tritanopia (blue-blind)
#C6295A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ba2791;
/* rgb */ color: rgb(186, 39, 145);
/* oklch */ color: oklch(54.6% 0.208 342.2);
Tailwind
colors: {
  custom: {
    50: '#d372b1',
    500: '#ba2791',
    950: '#000000',
  },
}
SCSS
$custom: #ba2791;
$custom-light: #d372b1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2791",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 316.735,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.5461,
    "c": 0.20773,
    "h": 342.2
  },
  "luminance": 0.13934
}

Semantic roles & 50–950 ramp

primary
#BA2791
secondary
#72CB8B
accent
#E86F40
background
#FDF7FA
surface
#FBEDF5
border
#D4C8CF
text
#150910
muted
#837B7F

Preview Lab

Preview with #BA2791

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

Preview Lab → · Contrast checker → · Palette generator →

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