#AE31A7#AE31A7

#AE31A7 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.6% C 0.206 H 330.4°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#AE31A7
RGBrgb(174, 49, 167)
HSLhsl(303, 56%, 44%)
HSVhsv(303, 72%, 68%)
CMYKcmyk(0%, 71.8%, 4%, 31.8%)
CIE-LABlab(44.21, 63.06, -36.88)
CIE-LCHlch(44.21, 73.05, 329.68°)
OKLaboklab(54.62% 0.179 -0.1017)
OKLCHoklch(54.62% 0.206 330.4)
XYZxyz(25.5288, 13.9873, 37.9070)
Luminance0.1399 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AE31A7 #31AE38
analogous
#7631AE #AE31A7 #AE3168
triadic
#AE31A7 #A7AE31 #31A7AE
tetradic
#AE31A7 #AE7631 #31AE38 #3168AE
square
#AE31A7 #AE7631 #31AE38 #3168AE
split-complementary
#AE31A7 #68AE31 #31AE76
monochromatic
#4E164B #7E2479 #AE31A7 #CD4FC6 #DB7FD6

Accessibility & contrast

On white

5.53
#AE31A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AE31A7
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AE31A7#FFFFFF#000000##FFFFFF
##AE31A71.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245EAA
Deuteranopia (green-blind)
#566FA4
Tritanopia (blue-blind)
#B54169
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ae31a7;
/* rgb */ color: rgb(174, 49, 167);
/* oklch */ color: oklch(54.6% 0.206 330.4);
Tailwind
colors: {
  custom: {
    50: '#ca75c1',
    500: '#ae31a7',
    950: '#000000',
  },
}
SCSS
$custom: #ae31a7;
$custom-light: #ca75c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ae31a7",
  "rgb": {
    "r": 174,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 303.36,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54619,
    "c": 0.20583,
    "h": 330.4
  },
  "luminance": 0.13985
}

Semantic roles & 50–950 ramp

primary
#AE31A7
secondary
#77C47B
accent
#DF5148
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AE31A7

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

Preview Lab → · Contrast checker → · Palette generator →

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