#BA279F#BA279F

#BA279F is a mid, highly saturated pink. Relative luminance 0.144; OKLCH L 55.3% C 0.217 H 337.0°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#BA279F
RGBrgb(186, 39, 159)
HSLhsl(311, 65%, 44%)
HSVhsv(311, 79%, 73%)
CMYKcmyk(0%, 79%, 14.5%, 27.1%)
CIE-LABlab(44.80, 67.58, -31.05)
CIE-LCHlch(44.80, 74.37, 335.32°)
OKLaboklab(55.29% 0.1994 -0.0846)
OKLCHoklch(55.29% 0.217 337)
XYZxyz(27.2338, 14.3960, 34.1386)
Luminance0.1439 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA279F #27BA42
analogous
#8B27BA #BA279F #BA2756
triadic
#BA279F #9FBA27 #279FBA
tetradic
#BA279F #BA8B27 #27BA42 #2756BA
square
#BA279F #BA8B27 #27BA42 #2756BA
split-complementary
#BA279F #56BA27 #27BA8B
monochromatic
#551249 #871C74 #BA279F #D846BD #E379CF

Accessibility & contrast

On white

5.41
#BA279F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#BA279F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA279F
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA279F#FFFFFF#000000##FFFFFF
##BA279F1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5CA2
Deuteranopia (green-blind)
#61729C
Tritanopia (blue-blind)
#C43262
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba279f;
/* rgb */ color: rgb(186, 39, 159);
/* oklch */ color: oklch(55.3% 0.217 337.0);
Tailwind
colors: {
  custom: {
    50: '#d373bb',
    500: '#ba279f',
    950: '#000000',
  },
}
SCSS
$custom: #ba279f;
$custom-light: #d373bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba279f",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 159
  },
  "hsl": {
    "h": 311.02,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55292,
    "c": 0.21658,
    "h": 337
  },
  "luminance": 0.14393
}

Semantic roles & 50–950 ramp

primary
#BA279F
secondary
#72CB82
accent
#E85F40
background
#FDF7FB
surface
#FBEDF6
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA279F

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

Preview Lab → · Contrast checker → · Palette generator →

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