#BA4271#BA4271

#BA4271 is a mid, vivid pink. Relative luminance 0.155; OKLCH L 55.8% C 0.160 H 359.5°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#BA4271
RGBrgb(186, 66, 113)
HSLhsl(337, 48%, 49%)
HSVhsv(337, 65%, 73%)
CMYKcmyk(0%, 64.5%, 39.2%, 27.1%)
CIE-LABlab(46.35, 52.37, -0.80)
CIE-LCHlch(46.35, 52.37, 359.12°)
OKLaboklab(55.84% 0.1601 -0.0014)
OKLCHoklch(55.84% 0.16 359.5)
XYZxyz(25.1802, 15.5307, 17.2913)
Luminance0.1553 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4271 #42BA8B
analogous
#BA42AD #BA4271 #BA4F42
triadic
#BA4271 #71BA42 #4271BA
tetradic
#BA4271 #ADBA42 #42BA8B #4F42BA
square
#BA4271 #ADBA42 #42BA8B #4F42BA
split-complementary
#BA4271 #42BA4F #42ADBA
monochromatic
#60223A #8D3256 #BA4271 #CB6E92 #DB9BB4

Accessibility & contrast

On white

5.11
#BA4271 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#BA4271 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA4271
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4271#FFFFFF#000000##FFFFFF
##BA42711.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#585F72
Deuteranopia (green-blind)
#79766E
Tritanopia (blue-blind)
#C93655
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba4271;
/* rgb */ color: rgb(186, 66, 113);
/* oklch */ color: oklch(55.8% 0.160 359.5);
Tailwind
colors: {
  custom: {
    50: '#d37d99',
    500: '#ba4271',
    950: '#000000',
  },
}
SCSS
$custom: #ba4271;
$custom-light: #d37d99;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4271",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 113
  },
  "hsl": {
    "h": 336.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.55841,
    "c": 0.16012,
    "h": 359.5
  },
  "luminance": 0.15528
}

Semantic roles & 50–950 ramp

primary
#BA4271
secondary
#90C8B2
accent
#D7A251
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#150A0E
muted
#837C7E

Preview Lab

Preview with #BA4271

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

Preview Lab → · Contrast checker → · Palette generator →

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