#A52798#A52798

#A52798 is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.6% C 0.201 H 332.8°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#A52798
RGBrgb(165, 39, 152)
HSLhsl(306, 62%, 40%)
HSVhsv(306, 76%, 65%)
CMYKcmyk(0%, 76.4%, 7.9%, 35.3%)
CIE-LABlab(40.77, 61.89, -33.43)
CIE-LCHlch(40.77, 70.34, 331.63°)
OKLaboklab(51.6% 0.1784 -0.0918)
OKLCHoklch(51.6% 0.201 332.8)
XYZxyz(21.9102, 11.7192, 30.8078)
Luminance0.1172 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A52798 #27A534
analogous
#7327A5 #A52798 #A52759
triadic
#A52798 #98A527 #2798A5
tetradic
#A52798 #A57327 #27A534 #2759A5
square
#A52798 #A57327 #27A534 #2759A5
split-complementary
#A52798 #59A527 #27A573
monochromatic
#42103D #741B6A #A52798 #D039C1 #DC6AD0

Accessibility & contrast

On white

6.28
#A52798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#A52798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A52798
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A52798#FFFFFF#000000##FFFFFF
##A527981.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20559B
Deuteranopia (green-blind)
#526695
Tritanopia (blue-blind)
#AC355E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a52798;
/* rgb */ color: rgb(165, 39, 152);
/* oklch */ color: oklch(51.6% 0.201 332.8);
Tailwind
colors: {
  custom: {
    50: '#c36fb7',
    500: '#a52798',
    950: '#000000',
  },
}
SCSS
$custom: #a52798;
$custom-light: #c36fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#a52798",
  "rgb": {
    "r": 165,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 306.19,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.51597,
    "c": 0.20065,
    "h": 332.8
  },
  "luminance": 0.11717
}

Semantic roles & 50–950 ramp

primary
#A52798
secondary
#66C26F
accent
#E55443
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A52798

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

Preview Lab → · Contrast checker → · Palette generator →

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