#BA278D#BA278D

#BA278D is a mid, highly saturated pink. Relative luminance 0.138; OKLCH L 54.4% C 0.205 H 343.8°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#BA278D
RGBrgb(186, 39, 141)
HSLhsl(318, 65%, 44%)
HSVhsv(318, 79%, 73%)
CMYKcmyk(0%, 79%, 24.2%, 27.1%)
CIE-LABlab(43.97, 65.19, -21.48)
CIE-LCHlch(43.97, 68.64, 341.76°)
OKLaboklab(54.43% 0.1972 -0.0574)
OKLCHoklch(54.43% 0.205 343.8)
XYZxyz(25.7840, 13.8160, 26.5030)
Luminance0.1381 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA278D #27BA54
analogous
#9E27BA #BA278D #BA2744
triadic
#BA278D #8DBA27 #278DBA
tetradic
#BA278D #BA9E27 #27BA54 #2744BA
square
#BA278D #BA9E27 #27BA54 #2744BA
split-complementary
#BA278D #44BA27 #27BA9E
monochromatic
#551240 #871C67 #BA278D #D846AB #E379C2

Accessibility & contrast

On white

5.58
#BA278D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#BA278D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA278D
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA278D#FFFFFF#000000##FFFFFF
##BA278D1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395890
Deuteranopia (green-blind)
#68718A
Tritanopia (blue-blind)
#C62658
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ba278d;
/* rgb */ color: rgb(186, 39, 141);
/* oklch */ color: oklch(54.4% 0.205 343.8);
Tailwind
colors: {
  custom: {
    50: '#d372ae',
    500: '#ba278d',
    950: '#000000',
  },
}
SCSS
$custom: #ba278d;
$custom-light: #d372ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ba278d",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 318.367,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.54427,
    "c": 0.20536,
    "h": 343.8
  },
  "luminance": 0.13813
}

Semantic roles & 50–950 ramp

primary
#BA278D
secondary
#72CB8D
accent
#E87340
background
#FDF7FA
surface
#FBEDF4
border
#D4C8CE
text
#150910
muted
#837B7F

Preview Lab

Preview with #BA278D

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

Preview Lab → · Contrast checker → · Palette generator →

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