#BA3271#BA3271

#BA3271 is a mid, vivid pink. Relative luminance 0.139; OKLCH L 54.2% C 0.180 H 356.8°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#BA3271
RGBrgb(186, 50, 113)
HSLhsl(332, 58%, 46%)
HSVhsv(332, 73%, 73%)
CMYKcmyk(0%, 73.1%, 39.2%, 27.1%)
CIE-LABlab(44.11, 58.55, -4.10)
CIE-LCHlch(44.11, 58.70, 355.99°)
OKLaboklab(54.19% 0.1797 -0.01)
OKLCHoklch(54.19% 0.18 356.8)
XYZxyz(24.3726, 13.9156, 17.0221)
Luminance0.1391 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3271 #32BA7B
analogous
#BA32B5 #BA3271 #BA3732
triadic
#BA3271 #71BA32 #3271BA
tetradic
#BA3271 #B5BA32 #32BA7B #3732BA
square
#BA3271 #B5BA32 #32BA7B #3732BA
split-complementary
#BA3271 #32BA37 #32B5BA
monochromatic
#5A1836 #8A2554 #BA3271 #D25790 #DF88B0

Accessibility & contrast

On white

5.55
#BA3271 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#BA3271 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3271
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3271#FFFFFF#000000##FFFFFF
##BA32711.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D5873
Deuteranopia (green-blind)
#73726E
Tritanopia (blue-blind)
#C9214D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ba3271;
/* rgb */ color: rgb(186, 50, 113);
/* oklch */ color: oklch(54.2% 0.180 356.8);
Tailwind
colors: {
  custom: {
    50: '#d47699',
    500: '#ba3271',
    950: '#000000',
  },
}
SCSS
$custom: #ba3271;
$custom-light: #d47699;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3271",
  "rgb": {
    "r": 186,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 332.206,
    "s": 57.627,
    "l": 46.275
  },
  "oklch": {
    "l": 0.54186,
    "c": 0.17999,
    "h": 356.8
  },
  "luminance": 0.13913
}

Semantic roles & 50–950 ramp

primary
#BA3271
secondary
#7FC9A7
accent
#E19A47
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#15090E
muted
#837B7E

Preview Lab

Preview with #BA3271

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

Preview Lab → · Contrast checker → · Palette generator →

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