#BA279B#BA279B

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

Color values

HEX#BA279B
RGBrgb(186, 39, 155)
HSLhsl(313, 65%, 44%)
HSVhsv(313, 79%, 73%)
CMYKcmyk(0%, 79%, 16.7%, 27.1%)
CIE-LABlab(44.60, 67.03, -28.95)
CIE-LCHlch(44.60, 73.01, 336.64°)
OKLaboklab(55.09% 0.199 -0.0786)
OKLCHoklch(55.09% 0.214 338.5)
XYZxyz(26.8923, 14.2594, 32.3400)
Luminance0.1426 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA279B #27BA46
analogous
#9027BA #BA279B #BA2752
triadic
#BA279B #9BBA27 #279BBA
tetradic
#BA279B #BA9027 #27BA46 #2752BA
square
#BA279B #BA9027 #27BA46 #2752BA
split-complementary
#BA279B #52BA27 #27BA90
monochromatic
#551247 #871C71 #BA279B #D846B9 #E379CC

Accessibility & contrast

On white

5.45
#BA279B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#BA279B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA279B
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA279B#FFFFFF#000000##FFFFFF
##BA279B1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5B9E
Deuteranopia (green-blind)
#627298
Tritanopia (blue-blind)
#C52F60
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba279b;
/* rgb */ color: rgb(186, 39, 155);
/* oklch */ color: oklch(55.1% 0.214 338.5);
Tailwind
colors: {
  custom: {
    50: '#d373b9',
    500: '#ba279b',
    950: '#000000',
  },
}
SCSS
$custom: #ba279b;
$custom-light: #d373b9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba279b",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 155
  },
  "hsl": {
    "h": 312.653,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55091,
    "c": 0.21398,
    "h": 338.5
  },
  "luminance": 0.14257
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA279B

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

Preview Lab → · Contrast checker → · Palette generator →

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