#A51F79#A51F79

#A51F79 is a mid, vivid pink. Relative luminance 0.104; OKLCH L 49.5% C 0.188 H 345.3°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#A51F79
RGBrgb(165, 31, 121)
HSLhsl(320, 68%, 38%)
HSVhsv(320, 81%, 65%)
CMYKcmyk(0%, 81.2%, 26.7%, 35.3%)
CIE-LABlab(38.48, 59.84, -17.94)
CIE-LCHlch(38.48, 62.47, 343.31°)
OKLaboklab(49.47% 0.1818 -0.0477)
OKLCHoklch(49.47% 0.188 345.3)
XYZxyz(19.4591, 10.3620, 19.0608)
Luminance0.1036 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51F79 #1FA54B
analogous
#8E1FA5 #A51F79 #A51F36
triadic
#A51F79 #79A51F #1F79A5
tetradic
#A51F79 #A58E1F #1FA54B #1F36A5
square
#A51F79 #A58E1F #1FA54B #1F36A5
split-complementary
#A51F79 #36A51F #1FA58E
monochromatic
#3E0C2D #711553 #A51F79 #D72A9E #E15EB6

Accessibility & contrast

On white

6.84
#A51F79 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#A51F79 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A51F79
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51F79#FFFFFF#000000##FFFFFF
##A51F791.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334C7B
Deuteranopia (green-blind)
#5C6376
Tritanopia (blue-blind)
#B11C4A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #a51f79;
/* rgb */ color: rgb(165, 31, 121);
/* oklch */ color: oklch(49.5% 0.188 345.3);
Tailwind
colors: {
  custom: {
    50: '#c46ba0',
    500: '#a51f79',
    950: '#000000',
  },
}
SCSS
$custom: #a51f79;
$custom-light: #c46ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#a51f79",
  "rgb": {
    "r": 165,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 319.701,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.49469,
    "c": 0.18796,
    "h": 345.3
  },
  "luminance": 0.1036
}

Semantic roles & 50–950 ramp

primary
#A51F79
secondary
#5BC57E
accent
#EB763D
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13080E
muted
#827A7E

Preview Lab

Preview with #A51F79

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

Preview Lab → · Contrast checker → · Palette generator →

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