#A51F87#A51F87

#A51F87 is a mid, vivid pink. Relative luminance 0.107; OKLCH L 50.1% C 0.197 H 339.3°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#A51F87
RGBrgb(165, 31, 135)
HSLhsl(313, 68%, 38%)
HSVhsv(313, 81%, 65%)
CMYKcmyk(0%, 81.2%, 18.2%, 35.3%)
CIE-LABlab(39.12, 61.67, -25.63)
CIE-LCHlch(39.12, 66.79, 337.43°)
OKLaboklab(50.14% 0.1838 -0.0694)
OKLCHoklch(50.14% 0.197 339.3)
XYZxyz(20.3808, 10.7306, 23.9149)
Luminance0.1073 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51F87 #1FA53D
analogous
#801FA5 #A51F87 #A51F44
triadic
#A51F87 #87A51F #1F87A5
tetradic
#A51F87 #A5801F #1FA53D #1F44A5
square
#A51F87 #A5801F #1FA53D #1F44A5
split-complementary
#A51F87 #44A51F #1FA580
monochromatic
#3E0C33 #71155D #A51F87 #D72AB0 #E15EC3

Accessibility & contrast

On white

6.68
#A51F87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#A51F87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A51F87
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51F87#FFFFFF#000000##FFFFFF
##A51F871.006.683.156.68
#FFFFFF6.681.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294F8A
Deuteranopia (green-blind)
#576384
Tritanopia (blue-blind)
#AF2652
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a51f87;
/* rgb */ color: rgb(165, 31, 135);
/* oklch */ color: oklch(50.1% 0.197 339.3);
Tailwind
colors: {
  custom: {
    50: '#c46caa',
    500: '#a51f87',
    950: '#000000',
  },
}
SCSS
$custom: #a51f87;
$custom-light: #c46caa;
$custom-dark: #000000;
JSON
{
  "hex": "#a51f87",
  "rgb": {
    "r": 165,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 313.433,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.50138,
    "c": 0.19652,
    "h": 339.3
  },
  "luminance": 0.10729
}

Semantic roles & 50–950 ramp

primary
#A51F87
secondary
#5BC573
accent
#EB643D
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A51F87

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

Preview Lab → · Contrast checker → · Palette generator →

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