#BA5271#BA5271

#BA5271 is a mid, vivid pink. Relative luminance 0.177; OKLCH L 57.9% C 0.137 H 3.7°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#BA5271
RGBrgb(186, 82, 113)
HSLhsl(342, 43%, 53%)
HSVhsv(342, 56%, 73%)
CMYKcmyk(0%, 55.9%, 39.2%, 27.1%)
CIE-LABlab(49.09, 45.04, 3.18)
CIE-LCHlch(49.09, 45.15, 4.04°)
OKLaboklab(57.88% 0.1371 0.0088)
OKLCHoklch(57.88% 0.137 3.7)
XYZxyz(26.2492, 17.6687, 17.6476)
Luminance0.1767 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5271 #52BA9B
analogous
#BA52A5 #BA5271 #BA6752
triadic
#BA5271 #71BA52 #5271BA
tetradic
#BA5271 #A5BA52 #52BA9B #6752BA
square
#BA5271 #A5BA52 #52BA9B #6752BA
split-complementary
#BA5271 #52BA67 #52A5BA
monochromatic
#682A3C #943B55 #BA5271 #CB7E95 #DDAAB9

Accessibility & contrast

On white

4.63
#BA5271 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#BA5271 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA5271
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5271#FFFFFF#000000##FFFFFF
##BA52711.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#656872
Deuteranopia (green-blind)
#807C6F
Tritanopia (blue-blind)
#C8485E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba5271;
/* rgb */ color: rgb(186, 82, 113);
/* oklch */ color: oklch(57.9% 0.137 3.7);
Tailwind
colors: {
  custom: {
    50: '#d28699',
    500: '#ba5271',
    950: '#000000',
  },
}
SCSS
$custom: #ba5271;
$custom-light: #d28699;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5271",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 113
  },
  "hsl": {
    "h": 342.115,
    "s": 42.975,
    "l": 52.549
  },
  "oklch": {
    "l": 0.57884,
    "c": 0.13742,
    "h": 3.7
  },
  "luminance": 0.17666
}

Semantic roles & 50–950 ramp

primary
#BA5271
secondary
#9DCABD
accent
#D3AD55
background
#FDF8F9
surface
#FAF0F2
border
#D3CBCC
text
#150B0E
muted
#837C7E

Preview Lab

Preview with #BA5271

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

Preview Lab → · Contrast checker → · Palette generator →

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