#AE28E2#AE28E2

#AE28E2 is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.8% C 0.261 H 313.6°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#AE28E2
RGBrgb(174, 40, 226)
HSLhsl(283, 76%, 52%)
HSVhsv(283, 82%, 89%)
CMYKcmyk(23%, 82.3%, 0%, 11.4%)
CIE-LABlab(46.99, 76.13, -66.72)
CIE-LCHlch(46.99, 101.23, 318.77°)
OKLaboklab(57.76% 0.1801 -0.1889)
OKLCHoklch(57.76% 0.261 313.6)
XYZxyz(31.9394, 16.0083, 73.3442)
Luminance0.1601 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AE28E2 #5CE228
analogous
#5128E2 #AE28E2 #E228B9
triadic
#AE28E2 #E2AE28 #28E2AE
tetradic
#AE28E2 #E25128 #5CE228 #28B9E2
square
#AE28E2 #E25128 #5CE228 #28B9E2
split-complementary
#AE28E2 #B9E228 #28E251
monochromatic
#60117F #8918B4 #AE28E2 #C25EE9 #D794F1

Accessibility & contrast

On white

5.00
#AE28E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#AE28E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AE28E2
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AE28E2#FFFFFF#000000##FFFFFF
##AE28E21.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E7
Deuteranopia (green-blind)
#0172DE
Tritanopia (blue-blind)
#A85988
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ae28e2;
/* rgb */ color: rgb(174, 40, 226);
/* oklch */ color: oklch(57.8% 0.261 313.6);
Tailwind
colors: {
  custom: {
    50: '#cc74ec',
    500: '#ae28e2',
    950: '#000000',
  },
}
SCSS
$custom: #ae28e2;
$custom-light: #cc74ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ae28e2",
  "rgb": {
    "r": 174,
    "g": 40,
    "b": 226
  },
  "hsl": {
    "h": 283.226,
    "s": 76.23,
    "l": 52.157
  },
  "oklch": {
    "l": 0.57759,
    "c": 0.261,
    "h": 313.6
  },
  "luminance": 0.16007
}

Semantic roles & 50–950 ramp

primary
#AE28E2
secondary
#A1DC8A
accent
#F3356A
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140916
muted
#837B84

Preview Lab

Preview with #AE28E2

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

Preview Lab → · Contrast checker → · Palette generator →

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