#AE31A2#AE31A2

#AE31A2 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.3% C 0.202 H 332.2°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#AE31A2
RGBrgb(174, 49, 162)
HSLhsl(306, 56%, 44%)
HSVhsv(306, 72%, 68%)
CMYKcmyk(0%, 71.8%, 6.9%, 31.8%)
CIE-LABlab(43.95, 62.26, -34.31)
CIE-LCHlch(43.95, 71.09, 331.14°)
OKLaboklab(54.35% 0.1787 -0.0943)
OKLCHoklch(54.35% 0.202 332.2)
XYZxyz(25.0755, 13.8060, 35.5196)
Luminance0.1380 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AE31A2 #31AE3D
analogous
#7B31AE #AE31A2 #AE3163
triadic
#AE31A2 #A2AE31 #31A2AE
tetradic
#AE31A2 #AE7B31 #31AE3D #3163AE
square
#AE31A2 #AE7B31 #31AE3D #3163AE
split-complementary
#AE31A2 #63AE31 #31AE7B
monochromatic
#4E1649 #7E2476 #AE31A2 #CD4FC1 #DB7FD2

Accessibility & contrast

On white

5.58
#AE31A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#AE31A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AE31A2
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AE31A2#FFFFFF#000000##FFFFFF
##AE31A21.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5DA5
Deuteranopia (green-blind)
#596E9F
Tritanopia (blue-blind)
#B53E66
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ae31a2;
/* rgb */ color: rgb(174, 49, 162);
/* oklch */ color: oklch(54.3% 0.202 332.2);
Tailwind
colors: {
  custom: {
    50: '#ca75be',
    500: '#ae31a2',
    950: '#000000',
  },
}
SCSS
$custom: #ae31a2;
$custom-light: #ca75be;
$custom-dark: #000000;
JSON
{
  "hex": "#ae31a2",
  "rgb": {
    "r": 174,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 305.76,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54347,
    "c": 0.20206,
    "h": 332.2
  },
  "luminance": 0.13804
}

Semantic roles & 50–950 ramp

primary
#AE31A2
secondary
#77C47E
accent
#DF5748
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AE31A2

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

Preview Lab → · Contrast checker → · Palette generator →

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