#BA278F#BA278F

#BA278F is a mid, highly saturated pink. Relative luminance 0.139; OKLCH L 54.5% C 0.207 H 343.0°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#BA278F
RGBrgb(186, 39, 143)
HSLhsl(318, 65%, 44%)
HSVhsv(318, 79%, 73%)
CMYKcmyk(0%, 79%, 23.1%, 27.1%)
CIE-LABlab(44.05, 65.44, -22.56)
CIE-LCHlch(44.05, 69.22, 340.98°)
OKLaboklab(54.52% 0.1975 -0.0605)
OKLCHoklch(54.52% 0.207 343)
XYZxyz(25.9341, 13.8761, 27.2939)
Luminance0.1387 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA278F #27BA52
analogous
#9C27BA #BA278F #BA2746
triadic
#BA278F #8FBA27 #278FBA
tetradic
#BA278F #BA9C27 #27BA52 #2746BA
square
#BA278F #BA9C27 #27BA52 #2746BA
split-complementary
#BA278F #46BA27 #27BA9C
monochromatic
#551241 #871C68 #BA278F #D846AD #E379C4

Accessibility & contrast

On white

5.56
#BA278F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#BA278F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA278F
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA278F#FFFFFF#000000##FFFFFF
##BA278F1.005.563.775.56
#FFFFFF5.561.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385992
Deuteranopia (green-blind)
#67718C
Tritanopia (blue-blind)
#C62859
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ba278f;
/* rgb */ color: rgb(186, 39, 143);
/* oklch */ color: oklch(54.5% 0.207 343.0);
Tailwind
colors: {
  custom: {
    50: '#d372b0',
    500: '#ba278f',
    950: '#000000',
  },
}
SCSS
$custom: #ba278f;
$custom-light: #d372b0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba278f",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 317.551,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.54518,
    "c": 0.20653,
    "h": 343
  },
  "luminance": 0.13873
}

Semantic roles & 50–950 ramp

primary
#BA278F
secondary
#72CB8C
accent
#E87140
background
#FDF7FA
surface
#FBEDF4
border
#D4C8CE
text
#150910
muted
#837B7F

Preview Lab

Preview with #BA278F

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

Preview Lab → · Contrast checker → · Palette generator →

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