#BA279D#BA279D

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

Color values

HEX#BA279D
RGBrgb(186, 39, 157)
HSLhsl(312, 65%, 44%)
HSVhsv(312, 79%, 73%)
CMYKcmyk(0%, 79%, 15.6%, 27.1%)
CIE-LABlab(44.70, 67.30, -30.00)
CIE-LCHlch(44.70, 73.69, 335.97°)
OKLaboklab(55.19% 0.1992 -0.0816)
OKLCHoklch(55.19% 0.215 337.7)
XYZxyz(27.0616, 14.3271, 33.2320)
Luminance0.1432 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA279D #27BA44
analogous
#8E27BA #BA279D #BA2754
triadic
#BA279D #9DBA27 #279DBA
tetradic
#BA279D #BA8E27 #27BA44 #2754BA
square
#BA279D #BA8E27 #27BA44 #2754BA
split-complementary
#BA279D #54BA27 #27BA8E
monochromatic
#551248 #871C72 #BA279D #D846BB #E379CE

Accessibility & contrast

On white

5.43
#BA279D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA279D
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA279D#FFFFFF#000000##FFFFFF
##BA279D1.005.433.865.43
#FFFFFF5.431.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5BA0
Deuteranopia (green-blind)
#62729A
Tritanopia (blue-blind)
#C43161
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba279d;
/* rgb */ color: rgb(186, 39, 157);
/* oklch */ color: oklch(55.2% 0.215 337.7);
Tailwind
colors: {
  custom: {
    50: '#d373ba',
    500: '#ba279d',
    950: '#000000',
  },
}
SCSS
$custom: #ba279d;
$custom-light: #d373ba;
$custom-dark: #000000;
JSON
{
  "hex": "#ba279d",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 311.837,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55191,
    "c": 0.21527,
    "h": 337.7
  },
  "luminance": 0.14324
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA279D

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

Preview Lab → · Contrast checker → · Palette generator →

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