#AE40C8#AE40C8

#AE40C8 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.0% C 0.215 H 319.3°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#AE40C8
RGBrgb(174, 64, 200)
HSLhsl(289, 55%, 52%)
HSVhsv(289, 68%, 78%)
CMYKcmyk(13%, 68%, 0%, 21.6%)
CIE-LABlab(48.05, 63.25, -50.10)
CIE-LCHlch(48.05, 80.69, 321.61°)
OKLaboklab(57.97% 0.1633 -0.1403)
OKLCHoklch(57.97% 0.215 319.3)
XYZxyz(29.7129, 16.8370, 56.3171)
Luminance0.1684 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AE40C8 #5AC840
analogous
#6A40C8 #AE40C8 #C8409E
triadic
#AE40C8 #C8AE40 #40C8AE
tetradic
#AE40C8 #C86A40 #5AC840 #409EC8
square
#AE40C8 #C86A40 #5AC840 #409EC8
split-complementary
#AE40C8 #9EC840 #40C86A
monochromatic
#5F206E #882D9D #AE40C8 #C270D6 #D69FE3

Accessibility & contrast

On white

4.81
#AE40C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#AE40C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AE40C8
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AE40C8#FFFFFF#000000##FFFFFF
##AE40C81.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCC
Deuteranopia (green-blind)
#4A76C5
Tritanopia (blue-blind)
#AE597F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ae40c8;
/* rgb */ color: rgb(174, 64, 200);
/* oklch */ color: oklch(58.0% 0.215 319.3);
Tailwind
colors: {
  custom: {
    50: '#ca7ed9',
    500: '#ae40c8',
    950: '#000000',
  },
}
SCSS
$custom: #ae40c8;
$custom-light: #ca7ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#ae40c8",
  "rgb": {
    "r": 174,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 288.529,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.57974,
    "c": 0.21529,
    "h": 319.3
  },
  "luminance": 0.16836
}

Semantic roles & 50–950 ramp

primary
#AE40C8
secondary
#9FD094
accent
#DF4966
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AE40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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