#BA279E#BA279E

#BA279E is a mid, highly saturated pink. Relative luminance 0.144; OKLCH L 55.2% C 0.216 H 337.4°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#BA279E
RGBrgb(186, 39, 158)
HSLhsl(311, 65%, 44%)
HSVhsv(311, 79%, 73%)
CMYKcmyk(0%, 79%, 15.1%, 27.1%)
CIE-LABlab(44.75, 67.44, -30.53)
CIE-LCHlch(44.75, 74.03, 335.65°)
OKLaboklab(55.24% 0.1993 -0.0831)
OKLCHoklch(55.24% 0.216 337.4)
XYZxyz(27.1474, 14.3614, 33.6834)
Luminance0.1436 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA279E #27BA43
analogous
#8D27BA #BA279E #BA2754
triadic
#BA279E #9EBA27 #279EBA
tetradic
#BA279E #BA8D27 #27BA43 #2754BA
square
#BA279E #BA8D27 #27BA43 #2754BA
split-complementary
#BA279E #54BA27 #27BA8D
monochromatic
#551248 #871C73 #BA279E #D846BC #E379CF

Accessibility & contrast

On white

5.42
#BA279E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#BA279E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA279E
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA279E#FFFFFF#000000##FFFFFF
##BA279E1.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5CA1
Deuteranopia (green-blind)
#61729B
Tritanopia (blue-blind)
#C43161
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba279e;
/* rgb */ color: rgb(186, 39, 158);
/* oklch */ color: oklch(55.2% 0.216 337.4);
Tailwind
colors: {
  custom: {
    50: '#d373bb',
    500: '#ba279e',
    950: '#000000',
  },
}
SCSS
$custom: #ba279e;
$custom-light: #d373bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba279e",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 158
  },
  "hsl": {
    "h": 311.429,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55242,
    "c": 0.21593,
    "h": 337.4
  },
  "luminance": 0.14359
}

Semantic roles & 50–950 ramp

primary
#BA279E
secondary
#72CB83
accent
#E86040
background
#FDF7FB
surface
#FBEDF6
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA279E

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

Preview Lab → · Contrast checker → · Palette generator →

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