#A52171#A52171

#A52171 is a mid, vivid pink. Relative luminance 0.103; OKLCH L 49.3% C 0.182 H 349.1°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#A52171
RGBrgb(165, 33, 113)
HSLhsl(324, 67%, 39%)
HSVhsv(324, 80%, 65%)
CMYKcmyk(0%, 80%, 31.5%, 35.3%)
CIE-LABlab(38.34, 58.33, -13.15)
CIE-LCHlch(38.34, 59.80, 347.30°)
OKLaboklab(49.26% 0.1784 -0.0345)
OKLCHoklch(49.26% 0.182 349.1)
XYZxyz(19.0426, 10.2816, 16.6013)
Luminance0.1028 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A52171 #21A555
analogous
#9721A5 #A52171 #A5212F
triadic
#A52171 #71A521 #2171A5
tetradic
#A52171 #A59721 #21A555 #212FA5
square
#A52171 #A59721 #21A555 #212FA5
split-complementary
#A52171 #2FA521 #21A597
monochromatic
#3F0D2B #72174E #A52171 #D52E93 #DF61AE

Accessibility & contrast

On white

6.87
#A52171 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#A52171 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A52171
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A52171#FFFFFF#000000##FFFFFF
##A521711.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#384C73
Deuteranopia (green-blind)
#5F626E
Tritanopia (blue-blind)
#B11847
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #a52171;
/* rgb */ color: rgb(165, 33, 113);
/* oklch */ color: oklch(49.3% 0.182 349.1);
Tailwind
colors: {
  custom: {
    50: '#c46c99',
    500: '#a52171',
    950: '#000000',
  },
}
SCSS
$custom: #a52171;
$custom-light: #c46c99;
$custom-dark: #000000;
JSON
{
  "hex": "#a52171",
  "rgb": {
    "r": 165,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 323.636,
    "s": 66.667,
    "l": 38.824
  },
  "oklch": {
    "l": 0.49259,
    "c": 0.18173,
    "h": 349.1
  },
  "luminance": 0.10279
}

Semantic roles & 50–950 ramp

primary
#A52171
secondary
#5EC486
accent
#EA823E
background
#FCF6F9
surface
#F9ECF2
border
#D2C7CC
text
#13080E
muted
#827A7E

Preview Lab

Preview with #A52171

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

Preview Lab → · Contrast checker → · Palette generator →

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