#A51F52#A51F52

#A51F52 is a mid, vivid pink. Relative luminance 0.096; OKLCH L 48.0% C 0.171 H 4.2°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#A51F52
RGBrgb(165, 31, 82)
HSLhsl(337, 68%, 38%)
HSVhsv(337, 81%, 65%)
CMYKcmyk(0%, 81.2%, 50.3%, 35.3%)
CIE-LABlab(37.10, 55.75, 4.72)
CIE-LCHlch(37.10, 55.95, 4.84°)
OKLaboklab(48.01% 0.1708 0.0126)
OKLCHoklch(48.01% 0.171 4.2)
XYZxyz(17.5316, 9.5910, 8.9091)
Luminance0.0959 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51F52 #1FA572
analogous
#A51F95 #A51F52 #A52F1F
triadic
#A51F52 #52A51F #1F52A5
tetradic
#A51F52 #95A51F #1FA572 #2F1FA5
square
#A51F52 #95A51F #1FA572 #2F1FA5
split-complementary
#A51F52 #1FA52F #1F95A5
monochromatic
#3E0C1F #711538 #A51F52 #D72A6C #E15E90

Accessibility & contrast

On white

7.20
#A51F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#A51F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #A51F52
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51F52#FFFFFF#000000##FFFFFF
##A51F521.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#424753
Deuteranopia (green-blind)
#65614F
Tritanopia (blue-blind)
#B40036
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #a51f52;
/* rgb */ color: rgb(165, 31, 82);
/* oklch */ color: oklch(48.0% 0.171 4.2);
Tailwind
colors: {
  custom: {
    50: '#c66a82',
    500: '#a51f52',
    950: '#000000',
  },
}
SCSS
$custom: #a51f52;
$custom-light: #c66a82;
$custom-dark: #000000;
JSON
{
  "hex": "#a51f52",
  "rgb": {
    "r": 165,
    "g": 31,
    "b": 82
  },
  "hsl": {
    "h": 337.164,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.48006,
    "c": 0.17123,
    "h": 4.2
  },
  "luminance": 0.09589
}

Semantic roles & 50–950 ramp

primary
#A51F52
secondary
#5BC59D
accent
#EBA93D
background
#FCF6F7
surface
#F9ECEE
border
#D2C7C9
text
#14070A
muted
#827A7C

Preview Lab

Preview with #A51F52

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

Preview Lab → · Contrast checker → · Palette generator →

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