#BA2797#BA2797

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

Color values

HEX#BA2797
RGBrgb(186, 39, 151)
HSLhsl(314, 65%, 44%)
HSVhsv(314, 79%, 73%)
CMYKcmyk(0%, 79%, 18.8%, 27.1%)
CIE-LABlab(44.41, 66.49, -26.84)
CIE-LCHlch(44.41, 71.70, 338.02°)
OKLaboklab(54.9% 0.1986 -0.0726)
OKLCHoklch(54.9% 0.211 339.9)
XYZxyz(26.5619, 14.1272, 30.6001)
Luminance0.1412 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2797 #27BA4A
analogous
#9427BA #BA2797 #BA274E
triadic
#BA2797 #97BA27 #2797BA
tetradic
#BA2797 #BA9427 #27BA4A #274EBA
square
#BA2797 #BA9427 #27BA4A #274EBA
split-complementary
#BA2797 #4EBA27 #27BA94
monochromatic
#551245 #871C6E #BA2797 #D846B5 #E379CA

Accessibility & contrast

On white

5.49
#BA2797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA2797
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2797#FFFFFF#000000##FFFFFF
##BA27971.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335A9A
Deuteranopia (green-blind)
#647194
Tritanopia (blue-blind)
#C52D5D
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba2797;
/* rgb */ color: rgb(186, 39, 151);
/* oklch */ color: oklch(54.9% 0.211 339.9);
Tailwind
colors: {
  custom: {
    50: '#d372b6',
    500: '#ba2797',
    950: '#000000',
  },
}
SCSS
$custom: #ba2797;
$custom-light: #d372b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2797",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 314.286,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.54895,
    "c": 0.21143,
    "h": 339.9
  },
  "luminance": 0.14125
}

Semantic roles & 50–950 ramp

primary
#BA2797
secondary
#72CB87
accent
#E86840
background
#FDF7FB
surface
#FBEDF6
border
#D4C8D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA2797

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

Preview Lab → · Contrast checker → · Palette generator →

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