#BA279C#BA279C

#BA279C is a mid, highly saturated pink. Relative luminance 0.143; OKLCH L 55.1% C 0.215 H 338.1°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#BA279C
RGBrgb(186, 39, 156)
HSLhsl(312, 65%, 44%)
HSVhsv(312, 79%, 73%)
CMYKcmyk(0%, 79%, 16.1%, 27.1%)
CIE-LABlab(44.65, 67.16, -29.48)
CIE-LCHlch(44.65, 73.35, 336.30°)
OKLaboklab(55.14% 0.1991 -0.0801)
OKLCHoklch(55.14% 0.215 338.1)
XYZxyz(26.9766, 14.2931, 32.7842)
Luminance0.1429 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA279C #27BA45
analogous
#8F27BA #BA279C #BA2753
triadic
#BA279C #9CBA27 #279CBA
tetradic
#BA279C #BA8F27 #27BA45 #2753BA
square
#BA279C #BA8F27 #27BA45 #2753BA
split-complementary
#BA279C #53BA27 #27BA8F
monochromatic
#551247 #871C72 #BA279C #D846BA #E379CD

Accessibility & contrast

On white

5.44
#BA279C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#BA279C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA279C
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA279C#FFFFFF#000000##FFFFFF
##BA279C1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5B9F
Deuteranopia (green-blind)
#627299
Tritanopia (blue-blind)
#C53060
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba279c;
/* rgb */ color: rgb(186, 39, 156);
/* oklch */ color: oklch(55.1% 0.215 338.1);
Tailwind
colors: {
  custom: {
    50: '#d373b9',
    500: '#ba279c',
    950: '#000000',
  },
}
SCSS
$custom: #ba279c;
$custom-light: #d373b9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba279c",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 156
  },
  "hsl": {
    "h": 312.245,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55141,
    "c": 0.21462,
    "h": 338.1
  },
  "luminance": 0.1429
}

Semantic roles & 50–950 ramp

primary
#BA279C
secondary
#72CB84
accent
#E86240
background
#FDF7FB
surface
#FBEDF6
border
#D4C8D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA279C

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

Preview Lab → · Contrast checker → · Palette generator →

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