#A51C87#A51C87

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

Color values

HEX#A51C87
RGBrgb(165, 28, 135)
HSLhsl(313, 71%, 38%)
HSVhsv(313, 83%, 65%)
CMYKcmyk(0%, 83%, 18.2%, 35.3%)
CIE-LABlab(38.87, 62.41, -26.03)
CIE-LCHlch(38.87, 67.62, 337.36°)
OKLaboklab(49.95% 0.1861 -0.0706)
OKLCHoklch(49.95% 0.199 339.2)
XYZxyz(20.3061, 10.5812, 23.8899)
Luminance0.1058 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51C87 #1CA53A
analogous
#7F1CA5 #A51C87 #A51C42
triadic
#A51C87 #87A51C #1C87A5
tetradic
#A51C87 #A57F1C #1CA53A #1C42A5
square
#A51C87 #A57F1C #1CA53A #1C42A5
split-complementary
#A51C87 #42A51C #1CA57F
monochromatic
#3C0A31 #71135C #A51C87 #D925B2 #E359C5

Accessibility & contrast

On white

6.74
#A51C87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#A51C87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A51C87
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51C87#FFFFFF#000000##FFFFFF
##A51C871.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274E8A
Deuteranopia (green-blind)
#566384
Tritanopia (blue-blind)
#AF2352
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #a51c87;
/* rgb */ color: rgb(165, 28, 135);
/* oklch */ color: oklch(50.0% 0.199 339.2);
Tailwind
colors: {
  custom: {
    50: '#c46baa',
    500: '#a51c87',
    950: '#000000',
  },
}
SCSS
$custom: #a51c87;
$custom-light: #c46baa;
$custom-dark: #000000;
JSON
{
  "hex": "#a51c87",
  "rgb": {
    "r": 165,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 313.139,
    "s": 70.984,
    "l": 37.843
  },
  "oklch": {
    "l": 0.49953,
    "c": 0.19902,
    "h": 339.2
  },
  "luminance": 0.10579
}

Semantic roles & 50–950 ramp

primary
#A51C87
secondary
#56C66F
accent
#EE613A
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #A51C87

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

Preview Lab → · Contrast checker → · Palette generator →

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