#AE51E2#AE51E2

#AE51E2 is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.5% C 0.218 H 311.1°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#AE51E2
RGBrgb(174, 81, 226)
HSLhsl(278, 71%, 60%)
HSVhsv(278, 64%, 89%)
CMYKcmyk(23%, 64.2%, 0%, 11.4%)
CIE-LABlab(52.26, 61.14, -58.21)
CIE-LCHlch(52.26, 84.42, 316.41°)
OKLaboklab(61.5% 0.1433 -0.1641)
OKLCHoklch(61.5% 0.218 311.1)
XYZxyz(34.1229, 20.3753, 74.0720)
Luminance0.2037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AE51E2 #85E251
analogous
#6551E2 #AE51E2 #E251CD
triadic
#AE51E2 #E2AE51 #51E2AE
tetradic
#AE51E2 #E26551 #85E251 #51CDE2
square
#AE51E2 #E26551 #85E251 #51CDE2
split-complementary
#AE51E2 #CDE251 #51E265
monochromatic
#6F1A9E #9423D3 #AE51E2 #C685EB #DFBAF3

Accessibility & contrast

On white

4.14
#AE51E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#AE51E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AE51E2
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AE51E2#FFFFFF#000000##000000
##AE51E21.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E6
Deuteranopia (green-blind)
#417EDF
Tritanopia (blue-blind)
#A86E93
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ae51e2;
/* rgb */ color: rgb(174, 81, 226);
/* oklch */ color: oklch(61.5% 0.218 311.1);
Tailwind
colors: {
  custom: {
    50: '#ca88ec',
    500: '#ae51e2',
    950: '#000000',
  },
}
SCSS
$custom: #ae51e2;
$custom-light: #ca88ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ae51e2",
  "rgb": {
    "r": 174,
    "g": 81,
    "b": 226
  },
  "hsl": {
    "h": 278.483,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.61501,
    "c": 0.21791,
    "h": 311.1
  },
  "luminance": 0.20375
}

Semantic roles & 50–950 ramp

primary
#AE51E2
secondary
#C0E3AC
accent
#D31257
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AE51E2

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

Preview Lab → · Contrast checker → · Palette generator →

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