#A51F51#A51F51

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

Color values

HEX#A51F51
RGBrgb(165, 31, 81)
HSLhsl(338, 68%, 38%)
HSVhsv(338, 81%, 65%)
CMYKcmyk(0%, 81.2%, 50.9%, 35.3%)
CIE-LABlab(37.07, 55.66, 5.32)
CIE-LCHlch(37.07, 55.92, 5.46°)
OKLaboklab(47.98% 0.1704 0.0141)
OKLCHoklch(47.98% 0.171 4.7)
XYZxyz(17.4938, 9.5759, 8.7101)
Luminance0.0957 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51F51 #1FA573
analogous
#A51F94 #A51F51 #A5301F
triadic
#A51F51 #51A51F #1F51A5
tetradic
#A51F51 #94A51F #1FA573 #301FA5
square
#A51F51 #94A51F #1FA573 #301FA5
split-complementary
#A51F51 #1FA530 #1F94A5
monochromatic
#3E0C1E #711538 #A51F51 #D72A6B #E15E8F

Accessibility & contrast

On white

7.21
#A51F51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#A51F51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #A51F51
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51F51#FFFFFF#000000##FFFFFF
##A51F511.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a51f51;
/* rgb */ color: rgb(165, 31, 81);
/* oklch */ color: oklch(48.0% 0.171 4.7);
Tailwind
colors: {
  custom: {
    50: '#c66a81',
    500: '#a51f51',
    950: '#000000',
  },
}
SCSS
$custom: #a51f51;
$custom-light: #c66a81;
$custom-dark: #000000;
JSON
{
  "hex": "#a51f51",
  "rgb": {
    "r": 165,
    "g": 31,
    "b": 81
  },
  "hsl": {
    "h": 337.612,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.47977,
    "c": 0.17099,
    "h": 4.7
  },
  "luminance": 0.09573
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A51F51

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

Preview Lab → · Contrast checker → · Palette generator →

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