#BA2796#BA2796

#BA2796 is a mid, highly saturated pink. Relative luminance 0.141; OKLCH L 54.8% C 0.211 H 340.3°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#BA2796
RGBrgb(186, 39, 150)
HSLhsl(315, 65%, 44%)
HSVhsv(315, 79%, 73%)
CMYKcmyk(0%, 79%, 19.4%, 27.1%)
CIE-LABlab(44.37, 66.35, -26.31)
CIE-LCHlch(44.37, 71.38, 338.37°)
OKLaboklab(54.85% 0.1985 -0.0711)
OKLCHoklch(54.85% 0.211 340.3)
XYZxyz(26.4811, 14.0949, 30.1742)
Luminance0.1409 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2796 #27BA4B
analogous
#9527BA #BA2796 #BA274D
triadic
#BA2796 #96BA27 #2796BA
tetradic
#BA2796 #BA9527 #27BA4B #274DBA
square
#BA2796 #BA9527 #27BA4B #274DBA
split-complementary
#BA2796 #4DBA27 #27BA95
monochromatic
#551244 #871C6D #BA2796 #D846B4 #E379C9

Accessibility & contrast

On white

5.50
#BA2796 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#BA2796 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2796
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2796#FFFFFF#000000##FFFFFF
##BA27961.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335A99
Deuteranopia (green-blind)
#647193
Tritanopia (blue-blind)
#C52C5D
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba2796;
/* rgb */ color: rgb(186, 39, 150);
/* oklch */ color: oklch(54.8% 0.211 340.3);
Tailwind
colors: {
  custom: {
    50: '#d372b5',
    500: '#ba2796',
    950: '#000000',
  },
}
SCSS
$custom: #ba2796;
$custom-light: #d372b5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2796",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 314.694,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.54847,
    "c": 0.2108,
    "h": 340.3
  },
  "luminance": 0.14092
}

Semantic roles & 50–950 ramp

primary
#BA2796
secondary
#72CB88
accent
#E86940
background
#FDF7FB
surface
#FBEDF6
border
#D4C8D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA2796

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

Preview Lab → · Contrast checker → · Palette generator →

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