#AE31A8#AE31A8

#AE31A8 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.7% C 0.207 H 330.0°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#AE31A8
RGBrgb(174, 49, 168)
HSLhsl(303, 56%, 44%)
HSVhsv(303, 72%, 68%)
CMYKcmyk(0%, 71.8%, 3.4%, 31.8%)
CIE-LABlab(44.27, 63.22, -37.39)
CIE-LCHlch(44.27, 73.45, 329.40°)
OKLaboklab(54.68% 0.179 -0.1032)
OKLCHoklch(54.68% 0.207 330)
XYZxyz(25.6216, 14.0244, 38.3957)
Luminance0.1402 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AE31A8 #31AE37
analogous
#7531AE #AE31A8 #AE3169
triadic
#AE31A8 #A8AE31 #31A8AE
tetradic
#AE31A8 #AE7531 #31AE37 #3169AE
square
#AE31A8 #AE7531 #31AE37 #3169AE
split-complementary
#AE31A8 #69AE31 #31AE75
monochromatic
#4E164C #7E247A #AE31A8 #CD4FC7 #DB7FD6

Accessibility & contrast

On white

5.52
#AE31A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#AE31A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AE31A8
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AE31A8#FFFFFF#000000##FFFFFF
##AE31A81.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235EAB
Deuteranopia (green-blind)
#566FA5
Tritanopia (blue-blind)
#B44169
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ae31a8;
/* rgb */ color: rgb(174, 49, 168);
/* oklch */ color: oklch(54.7% 0.207 330.0);
Tailwind
colors: {
  custom: {
    50: '#ca75c2',
    500: '#ae31a8',
    950: '#000000',
  },
}
SCSS
$custom: #ae31a8;
$custom-light: #ca75c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ae31a8",
  "rgb": {
    "r": 174,
    "g": 49,
    "b": 168
  },
  "hsl": {
    "h": 302.88,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54675,
    "c": 0.20659,
    "h": 330
  },
  "luminance": 0.14022
}

Semantic roles & 50–950 ramp

primary
#AE31A8
secondary
#77C47B
accent
#DF5048
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AE31A8

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

Preview Lab → · Contrast checker → · Palette generator →

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