#BA427F#BA427F

#BA427F is a mid, vivid pink. Relative luminance 0.159; OKLCH L 56.3% C 0.166 H 352.3°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#BA427F
RGBrgb(186, 66, 127)
HSLhsl(330, 48%, 49%)
HSVhsv(330, 65%, 73%)
CMYKcmyk(0%, 64.5%, 31.7%, 27.1%)
CIE-LABlab(46.80, 53.99, -8.66)
CIE-LCHlch(46.80, 54.68, 350.89°)
OKLaboklab(56.32% 0.1645 -0.0223)
OKLCHoklch(56.32% 0.166 352.3)
XYZxyz(26.0300, 15.8706, 21.7671)
Luminance0.1587 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA427F #42BA7D
analogous
#B942BA #BA427F #BA4243
triadic
#BA427F #7FBA42 #427FBA
tetradic
#BA427F #BAB942 #42BA7D #4243BA
square
#BA427F #BAB942 #42BA7D #4243BA
split-complementary
#BA427F #43BA42 #42BAB9
monochromatic
#602241 #8D3260 #BA427F #CB6E9D #DB9BBC

Accessibility & contrast

On white

5.03
#BA427F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#BA427F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA427F
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA427F#FFFFFF#000000##FFFFFF
##BA427F1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#546181
Deuteranopia (green-blind)
#75777C
Tritanopia (blue-blind)
#C83B5B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba427f;
/* rgb */ color: rgb(186, 66, 127);
/* oklch */ color: oklch(56.3% 0.166 352.3);
Tailwind
colors: {
  custom: {
    50: '#d37ea4',
    500: '#ba427f',
    950: '#000000',
  },
}
SCSS
$custom: #ba427f;
$custom-light: #d37ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba427f",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 127
  },
  "hsl": {
    "h": 329.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.56323,
    "c": 0.16604,
    "h": 352.3
  },
  "luminance": 0.15868
}

Semantic roles & 50–950 ramp

primary
#BA427F
secondary
#90C8AB
accent
#D79351
background
#FDF8FA
surface
#FAEFF4
border
#D3CACE
text
#150A0F
muted
#837C7F

Preview Lab

Preview with #BA427F

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

Preview Lab → · Contrast checker → · Palette generator →

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