#BA279A#BA279A

#BA279A is a mid, highly saturated pink. Relative luminance 0.142; OKLCH L 55.0% C 0.213 H 338.8°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#BA279A
RGBrgb(186, 39, 154)
HSLhsl(313, 65%, 44%)
HSVhsv(313, 79%, 73%)
CMYKcmyk(0%, 79%, 17.2%, 27.1%)
CIE-LABlab(44.56, 66.89, -28.43)
CIE-LCHlch(44.56, 72.68, 336.98°)
OKLaboklab(55.04% 0.1989 -0.0771)
OKLCHoklch(55.04% 0.213 338.8)
XYZxyz(26.8087, 14.2259, 31.8996)
Luminance0.1422 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA279A #27BA47
analogous
#9127BA #BA279A #BA2751
triadic
#BA279A #9ABA27 #279ABA
tetradic
#BA279A #BA9127 #27BA47 #2751BA
square
#BA279A #BA9127 #27BA47 #2751BA
split-complementary
#BA279A #51BA27 #27BA91
monochromatic
#551246 #871C70 #BA279A #D846B8 #E379CC

Accessibility & contrast

On white

5.46
#BA279A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#BA279A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA279A
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA279A#FFFFFF#000000##FFFFFF
##BA279A1.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305B9D
Deuteranopia (green-blind)
#637197
Tritanopia (blue-blind)
#C52F5F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba279a;
/* rgb */ color: rgb(186, 39, 154);
/* oklch */ color: oklch(55.0% 0.213 338.8);
Tailwind
colors: {
  custom: {
    50: '#d373b8',
    500: '#ba279a',
    950: '#000000',
  },
}
SCSS
$custom: #ba279a;
$custom-light: #d373b8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba279a",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 154
  },
  "hsl": {
    "h": 313.061,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55042,
    "c": 0.21334,
    "h": 338.8
  },
  "luminance": 0.14223
}

Semantic roles & 50–950 ramp

primary
#BA279A
secondary
#72CB85
accent
#E86440
background
#FDF7FB
surface
#FBEDF6
border
#D4C8D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA279A

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

Preview Lab → · Contrast checker → · Palette generator →

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