#AE31D4#AE31D4

#AE31D4 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.4% C 0.242 H 316.7°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#AE31D4
RGBrgb(174, 49, 212)
HSLhsl(286, 65%, 51%)
HSVhsv(286, 77%, 83%)
CMYKcmyk(17.9%, 76.9%, 0%, 16.9%)
CIE-LABlab(46.91, 70.91, -58.85)
CIE-LCHlch(46.91, 92.15, 320.31°)
OKLaboklab(57.4% 0.1762 -0.1658)
OKLCHoklch(57.4% 0.242 316.7)
XYZxyz(30.4357, 15.9501, 63.7500)
Luminance0.1595 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AE31D4 #57D431
analogous
#5C31D4 #AE31D4 #D431A8
triadic
#AE31D4 #D4AE31 #31D4AE
tetradic
#AE31D4 #D45C31 #57D431 #31A8D4
square
#AE31D4 #D45C31 #57D431 #31A8D4
split-complementary
#AE31D4 #A8D431 #31D45C
monochromatic
#5E1873 #8723A5 #AE31D4 #C264DF #D696E9

Accessibility & contrast

On white

5.01
#AE31D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#AE31D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AE31D4
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AE31D4#FFFFFF#000000##FFFFFF
##AE31D41.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D8
Deuteranopia (green-blind)
#3273D1
Tritanopia (blue-blind)
#AC5682
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ae31d4;
/* rgb */ color: rgb(174, 49, 212);
/* oklch */ color: oklch(57.4% 0.242 316.7);
Tailwind
colors: {
  custom: {
    50: '#cb77e2',
    500: '#ae31d4',
    950: '#000000',
  },
}
SCSS
$custom: #ae31d4;
$custom-light: #cb77e2;
$custom-dark: #000000;
JSON
{
  "hex": "#ae31d4",
  "rgb": {
    "r": 174,
    "g": 49,
    "b": 212
  },
  "hsl": {
    "h": 286.012,
    "s": 65.462,
    "l": 51.176
  },
  "oklch": {
    "l": 0.574,
    "c": 0.24198,
    "h": 316.7
  },
  "luminance": 0.15949
}

Semantic roles & 50–950 ramp

primary
#AE31D4
secondary
#9DD48C
accent
#E83F67
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #AE31D4

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

Preview Lab → · Contrast checker → · Palette generator →

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