#A52F87#A52F87

#A52F87 is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.4% C 0.180 H 339.9°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#A52F87
RGBrgb(165, 47, 135)
HSLhsl(315, 56%, 42%)
HSVhsv(315, 72%, 65%)
CMYKcmyk(0%, 71.5%, 18.2%, 35.3%)
CIE-LABlab(40.87, 56.70, -22.91)
CIE-LCHlch(40.87, 61.15, 337.99°)
OKLaboklab(51.4% 0.1688 -0.0618)
OKLCHoklch(51.4% 0.18 339.9)
XYZxyz(20.9073, 11.7836, 24.0904)
Luminance0.1178 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A52F87 #2FA54D
analogous
#882FA5 #A52F87 #A52F4C
triadic
#A52F87 #87A52F #2F87A5
tetradic
#A52F87 #A5882F #2FA54D #2F4CA5
square
#A52F87 #A5882F #2FA54D #2F4CA5
split-complementary
#A52F87 #4CA52F #2FA588
monochromatic
#461439 #752160 #A52F87 #CB47A9 #D876BF

Accessibility & contrast

On white

6.26
#A52F87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#A52F87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A52F87
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A52F87#FFFFFF#000000##FFFFFF
##A52F871.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375489
Deuteranopia (green-blind)
#5C6784
Tritanopia (blue-blind)
#AF3357
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a52f87;
/* rgb */ color: rgb(165, 47, 135);
/* oklch */ color: oklch(51.4% 0.180 339.9);
Tailwind
colors: {
  custom: {
    50: '#c372aa',
    500: '#a52f87',
    950: '#000000',
  },
}
SCSS
$custom: #a52f87;
$custom-light: #c372aa;
$custom-dark: #000000;
JSON
{
  "hex": "#a52f87",
  "rgb": {
    "r": 165,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 315.254,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.514,
    "c": 0.17974,
    "h": 339.9
  },
  "luminance": 0.11782
}

Semantic roles & 50–950 ramp

primary
#A52F87
secondary
#70C084
accent
#DF6F49
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130910
muted
#827B7F

Preview Lab

Preview with #A52F87

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

Preview Lab → · Contrast checker → · Palette generator →

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