#A52198#A52198

#A52198 is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.2% C 0.206 H 332.7°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#A52198
RGBrgb(165, 33, 152)
HSLhsl(306, 67%, 39%)
HSVhsv(306, 80%, 65%)
CMYKcmyk(0%, 80%, 7.9%, 35.3%)
CIE-LABlab(40.17, 63.60, -34.36)
CIE-LCHlch(40.17, 72.29, 331.62°)
OKLaboklab(51.17% 0.1834 -0.0945)
OKLCHoklch(51.17% 0.206 332.7)
XYZxyz(21.7285, 11.3559, 30.7472)
Luminance0.1135 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A52198 #21A52E
analogous
#7021A5 #A52198 #A52156
triadic
#A52198 #98A521 #2198A5
tetradic
#A52198 #A57021 #21A52E #2156A5
square
#A52198 #A57021 #21A52E #2156A5
split-complementary
#A52198 #56A521 #21A570
monochromatic
#3F0D3A #721769 #A52198 #D52EC5 #DF61D3

Accessibility & contrast

On white

6.42
#A52198 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#A52198 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A52198
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A52198#FFFFFF#000000##FFFFFF
##A521981.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18539B
Deuteranopia (green-blind)
#506595
Tritanopia (blue-blind)
#AC315C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a52198;
/* rgb */ color: rgb(165, 33, 152);
/* oklch */ color: oklch(51.2% 0.206 332.7);
Tailwind
colors: {
  custom: {
    50: '#c46db7',
    500: '#a52198',
    950: '#000000',
  },
}
SCSS
$custom: #a52198;
$custom-light: #c46db7;
$custom-dark: #000000;
JSON
{
  "hex": "#a52198",
  "rgb": {
    "r": 165,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 305.909,
    "s": 66.667,
    "l": 38.824
  },
  "oklch": {
    "l": 0.51172,
    "c": 0.2063,
    "h": 332.7
  },
  "luminance": 0.11354
}

Semantic roles & 50–950 ramp

primary
#A52198
secondary
#5EC468
accent
#EA4F3E
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A52198

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

Preview Lab → · Contrast checker → · Palette generator →

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