#A52AAA#A52AAA

#A52AAA is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.9% C 0.211 H 326.3°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#A52AAA
RGBrgb(165, 42, 170)
HSLhsl(298, 60%, 42%)
HSVhsv(298, 75%, 67%)
CMYKcmyk(2.9%, 75.3%, 0%, 33.3%)
CIE-LABlab(42.09, 63.87, -42.12)
CIE-LCHlch(42.09, 76.51, 326.59°)
OKLaboklab(52.87% 0.1758 -0.1171)
OKLCHoklch(52.87% 0.211 326.3)
XYZxyz(23.6003, 12.5592, 39.2035)
Luminance0.1256 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A52AAA #2FAA2A
analogous
#652AAA #A52AAA #AA2A6F
triadic
#A52AAA #AAA52A #2AAAA5
tetradic
#A52AAA #AA652A #2FAA2A #2A6FAA
square
#A52AAA #AA652A #2FAA2A #2A6FAA
split-complementary
#A52AAA #6FAA2A #2AAA65
monochromatic
#461248 #751E79 #A52AAA #CB41D0 #D872DC

Accessibility & contrast

On white

5.98
#A52AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#A52AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A52AAA
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A52AAA#FFFFFF#000000##FFFFFF
##A52AAA1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAD
Deuteranopia (green-blind)
#4969A7
Tritanopia (blue-blind)
#A94069
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a52aaa;
/* rgb */ color: rgb(165, 42, 170);
/* oklch */ color: oklch(52.9% 0.211 326.3);
Tailwind
colors: {
  custom: {
    50: '#c471c4',
    500: '#a52aaa',
    950: '#000000',
  },
}
SCSS
$custom: #a52aaa;
$custom-light: #c471c4;
$custom-dark: #000000;
JSON
{
  "hex": "#a52aaa",
  "rgb": {
    "r": 165,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 297.656,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52867,
    "c": 0.21122,
    "h": 326.3
  },
  "luminance": 0.12558
}

Semantic roles & 50–950 ramp

primary
#A52AAA
secondary
#70C36C
accent
#E4444B
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A52AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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