#BA427C#BA427C

#BA427C is a mid, vivid pink. Relative luminance 0.158; OKLCH L 56.2% C 0.165 H 353.8°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#BA427C
RGBrgb(186, 66, 124)
HSLhsl(331, 48%, 49%)
HSVhsv(331, 65%, 73%)
CMYKcmyk(0%, 64.5%, 33.3%, 27.1%)
CIE-LABlab(46.70, 53.63, -6.99)
CIE-LCHlch(46.70, 54.08, 352.57°)
OKLaboklab(56.22% 0.1637 -0.0178)
OKLCHoklch(56.22% 0.165 353.8)
XYZxyz(25.8374, 15.7936, 20.7527)
Luminance0.1579 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA427C #42BA80
analogous
#BA42B8 #BA427C #BA4442
triadic
#BA427C #7CBA42 #427CBA
tetradic
#BA427C #B8BA42 #42BA80 #4442BA
square
#BA427C #B8BA42 #42BA80 #4442BA
split-complementary
#BA427C #42BA44 #42B8BA
monochromatic
#602240 #8D325E #BA427C #CB6E9B #DB9BBA

Accessibility & contrast

On white

5.05
#BA427C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#BA427C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA427C
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA427C#FFFFFF#000000##FFFFFF
##BA427C1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#55617E
Deuteranopia (green-blind)
#767779
Tritanopia (blue-blind)
#C83A5A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba427c;
/* rgb */ color: rgb(186, 66, 124);
/* oklch */ color: oklch(56.2% 0.165 353.8);
Tailwind
colors: {
  custom: {
    50: '#d37ea1',
    500: '#ba427c',
    950: '#000000',
  },
}
SCSS
$custom: #ba427c;
$custom-light: #d37ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba427c",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 124
  },
  "hsl": {
    "h": 331,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.56215,
    "c": 0.16462,
    "h": 353.8
  },
  "luminance": 0.15791
}

Semantic roles & 50–950 ramp

primary
#BA427C
secondary
#90C8AD
accent
#D79651
background
#FDF8F9
surface
#FAEFF2
border
#D3CACC
text
#150A0F
muted
#837C7E

Preview Lab

Preview with #BA427C

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

Preview Lab → · Contrast checker → · Palette generator →

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