#A52A8A#A52A8A

#A52A8A is a mid, vivid pink. Relative luminance 0.115; OKLCH L 51.1% C 0.188 H 338.4°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#A52A8A
RGBrgb(165, 42, 138)
HSLhsl(313, 59%, 41%)
HSVhsv(313, 75%, 65%)
CMYKcmyk(0%, 74.5%, 16.4%, 35.3%)
CIE-LABlab(40.40, 58.86, -25.48)
CIE-LCHlch(40.40, 64.14, 336.59°)
OKLaboklab(51.1% 0.1744 -0.0691)
OKLCHoklch(51.1% 0.188 338.4)
XYZxyz(20.9329, 11.4922, 25.1556)
Luminance0.1149 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A52A8A #2AA545
analogous
#822AA5 #A52A8A #A52A4C
triadic
#A52A8A #8AA52A #2A8AA5
tetradic
#A52A8A #A5822A #2AA545 #2A4CA5
square
#A52A8A #A5822A #2AA545 #2A4CA5
split-complementary
#A52A8A #4CA52A #2AA582
monochromatic
#431138 #741E61 #A52A8A #CE3EAE #DA6FC3

Accessibility & contrast

On white

6.37
#A52A8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#A52A8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A52A8A
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A52A8A#FFFFFF#000000##FFFFFF
##A52A8A1.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30538D
Deuteranopia (green-blind)
#596687
Tritanopia (blue-blind)
#AE3057
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a52a8a;
/* rgb */ color: rgb(165, 42, 138);
/* oklch */ color: oklch(51.1% 0.188 338.4);
Tailwind
colors: {
  custom: {
    50: '#c370ac',
    500: '#a52a8a',
    950: '#000000',
  },
}
SCSS
$custom: #a52a8a;
$custom-light: #c370ac;
$custom-dark: #000000;
JSON
{
  "hex": "#a52a8a",
  "rgb": {
    "r": 165,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 313.171,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.51103,
    "c": 0.1876,
    "h": 338.4
  },
  "luminance": 0.1149
}

Semantic roles & 50–950 ramp

primary
#A52A8A
secondary
#69C17D
accent
#E36845
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A52A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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