#BA278E#BA278E

#BA278E is a mid, highly saturated pink. Relative luminance 0.138; OKLCH L 54.5% C 0.206 H 343.4°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#BA278E
RGBrgb(186, 39, 142)
HSLhsl(318, 65%, 44%)
HSVhsv(318, 79%, 73%)
CMYKcmyk(0%, 79%, 23.7%, 27.1%)
CIE-LABlab(44.01, 65.32, -22.02)
CIE-LCHlch(44.01, 68.93, 341.37°)
OKLaboklab(54.47% 0.1973 -0.059)
OKLCHoklch(54.47% 0.206 343.4)
XYZxyz(25.8587, 13.8459, 26.8967)
Luminance0.1384 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA278E #27BA53
analogous
#9D27BA #BA278E #BA2745
triadic
#BA278E #8EBA27 #278EBA
tetradic
#BA278E #BA9D27 #27BA53 #2745BA
square
#BA278E #BA9D27 #27BA53 #2745BA
split-complementary
#BA278E #45BA27 #27BA9D
monochromatic
#551241 #871C67 #BA278E #D846AC #E379C3

Accessibility & contrast

On white

5.57
#BA278E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA278E
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA278E#FFFFFF#000000##FFFFFF
##BA278E1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395991
Deuteranopia (green-blind)
#67718B
Tritanopia (blue-blind)
#C62758
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ba278e;
/* rgb */ color: rgb(186, 39, 142);
/* oklch */ color: oklch(54.5% 0.206 343.4);
Tailwind
colors: {
  custom: {
    50: '#d372af',
    500: '#ba278e',
    950: '#000000',
  },
}
SCSS
$custom: #ba278e;
$custom-light: #d372af;
$custom-dark: #000000;
JSON
{
  "hex": "#ba278e",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 317.959,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.54472,
    "c": 0.20594,
    "h": 343.4
  },
  "luminance": 0.13843
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA278E

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

Preview Lab → · Contrast checker → · Palette generator →

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