#A51F56#A51F56

#A51F56 is a mid, vivid pink. Relative luminance 0.097; OKLCH L 48.1% C 0.172 H 2.2°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#A51F56
RGBrgb(165, 31, 86)
HSLhsl(335, 68%, 38%)
HSVhsv(335, 81%, 65%)
CMYKcmyk(0%, 81.2%, 47.9%, 35.3%)
CIE-LABlab(37.21, 56.10, 2.32)
CIE-LCHlch(37.21, 56.14, 2.37°)
OKLaboklab(48.13% 0.1722 0.0065)
OKLCHoklch(48.13% 0.172 2.2)
XYZxyz(17.6883, 9.6536, 9.7342)
Luminance0.0965 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51F56 #1FA56E
analogous
#A51F99 #A51F56 #A52B1F
triadic
#A51F56 #56A51F #1F56A5
tetradic
#A51F56 #99A51F #1FA56E #2B1FA5
square
#A51F56 #99A51F #1FA56E #2B1FA5
split-complementary
#A51F56 #1FA52B #1F99A5
monochromatic
#3E0C20 #71153B #A51F56 #D72A71 #E15E93

Accessibility & contrast

On white

7.17
#A51F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#A51F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #A51F56
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51F56#FFFFFF#000000##FFFFFF
##A51F561.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#414757
Deuteranopia (green-blind)
#656153
Tritanopia (blue-blind)
#B40038
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #a51f56;
/* rgb */ color: rgb(165, 31, 86);
/* oklch */ color: oklch(48.1% 0.172 2.2);
Tailwind
colors: {
  custom: {
    50: '#c56a85',
    500: '#a51f56',
    950: '#000000',
  },
}
SCSS
$custom: #a51f56;
$custom-light: #c56a85;
$custom-dark: #000000;
JSON
{
  "hex": "#a51f56",
  "rgb": {
    "r": 165,
    "g": 31,
    "b": 86
  },
  "hsl": {
    "h": 335.373,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.48129,
    "c": 0.17233,
    "h": 2.2
  },
  "luminance": 0.09651
}

Semantic roles & 50–950 ramp

primary
#A51F56
secondary
#5BC599
accent
#EBA43D
background
#FCF6F8
surface
#F9ECEF
border
#D2C7CA
text
#14070B
muted
#827A7C

Preview Lab

Preview with #A51F56

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

Preview Lab → · Contrast checker → · Palette generator →

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