#AE51D8#AE51D8

#AE51D8 is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 60.9% C 0.208 H 313.7°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#AE51D8
RGBrgb(174, 81, 216)
HSLhsl(281, 63%, 58%)
HSVhsv(281, 63%, 85%)
CMYKcmyk(19.4%, 62.5%, 0%, 15.3%)
CIE-LABlab(51.66, 59.05, -53.51)
CIE-LCHlch(51.66, 79.68, 317.82°)
OKLaboklab(60.88% 0.1437 -0.1504)
OKLCHoklch(60.88% 0.208 313.7)
XYZxyz(32.7906, 19.8424, 67.0551)
Luminance0.1984 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AE51D8 #7BD851
analogous
#6A51D8 #AE51D8 #D851BF
triadic
#AE51D8 #D8AE51 #51D8AE
tetradic
#AE51D8 #D86A51 #7BD851 #51BFD8
square
#AE51D8 #D86A51 #7BD851 #51BFD8
split-complementary
#AE51D8 #BFD851 #51D86A
monochromatic
#6C208F #922BC1 #AE51D8 #C583E3 #DDB5EE

Accessibility & contrast

On white

4.23
#AE51D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#AE51D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AE51D8
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AE51D8#FFFFFF#000000##000000
##AE51D81.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A76DC
Deuteranopia (green-blind)
#4B7DD5
Tritanopia (blue-blind)
#AA6A8D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ae51d8;
/* rgb */ color: rgb(174, 81, 216);
/* oklch */ color: oklch(60.9% 0.208 313.7);
Tailwind
colors: {
  custom: {
    50: '#ca87e5',
    500: '#ae51d8',
    950: '#000000',
  },
}
SCSS
$custom: #ae51d8;
$custom-light: #ca87e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ae51d8",
  "rgb": {
    "r": 174,
    "g": 81,
    "b": 216
  },
  "hsl": {
    "h": 281.333,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.60875,
    "c": 0.20797,
    "h": 313.7
  },
  "luminance": 0.19841
}

Semantic roles & 50–950 ramp

primary
#AE51D8
secondary
#B8DDA8
accent
#E64175
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AE51D8

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

Preview Lab → · Contrast checker → · Palette generator →

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