#A51F84#A51F84

#A51F84 is a mid, vivid pink. Relative luminance 0.106; OKLCH L 50.0% C 0.195 H 340.5°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#A51F84
RGBrgb(165, 31, 132)
HSLhsl(315, 68%, 38%)
HSVhsv(315, 81%, 65%)
CMYKcmyk(0%, 81.2%, 20%, 35.3%)
CIE-LABlab(38.98, 61.27, -24.00)
CIE-LCHlch(38.98, 65.80, 338.61°)
OKLaboklab(49.99% 0.1835 -0.0648)
OKLCHoklch(49.99% 0.195 340.5)
XYZxyz(20.1725, 10.6473, 22.8181)
Luminance0.1065 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51F84 #1FA540
analogous
#831FA5 #A51F84 #A51F41
triadic
#A51F84 #84A51F #1F84A5
tetradic
#A51F84 #A5831F #1FA540 #1F41A5
square
#A51F84 #A5831F #1FA540 #1F41A5
split-complementary
#A51F84 #41A51F #1FA583
monochromatic
#3E0C32 #71155B #A51F84 #D72AAC #E15EC0

Accessibility & contrast

On white

6.71
#A51F84 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#A51F84 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A51F84
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51F84#FFFFFF#000000##FFFFFF
##A51F841.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4E87
Deuteranopia (green-blind)
#586381
Tritanopia (blue-blind)
#AF2451
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a51f84;
/* rgb */ color: rgb(165, 31, 132);
/* oklch */ color: oklch(50.0% 0.195 340.5);
Tailwind
colors: {
  custom: {
    50: '#c46ca8',
    500: '#a51f84',
    950: '#000000',
  },
}
SCSS
$custom: #a51f84;
$custom-light: #c46ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#a51f84",
  "rgb": {
    "r": 165,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 314.776,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.49988,
    "c": 0.1946,
    "h": 340.5
  },
  "luminance": 0.10645
}

Semantic roles & 50–950 ramp

primary
#A51F84
secondary
#5BC575
accent
#EB683D
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#13080F
muted
#827A7F

Preview Lab

Preview with #A51F84

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

Preview Lab → · Contrast checker → · Palette generator →

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