#AE42CC#AE42CC

#AE42CC is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.4% C 0.216 H 318.1°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#AE42CC
RGBrgb(174, 66, 204)
HSLhsl(287, 58%, 53%)
HSVhsv(287, 68%, 80%)
CMYKcmyk(14.7%, 67.6%, 0%, 20%)
CIE-LABlab(48.58, 63.20, -51.57)
CIE-LCHlch(48.58, 81.57, 320.79°)
OKLaboklab(58.43% 0.161 -0.1446)
OKLCHoklch(58.43% 0.216 318.1)
XYZxyz(30.3013, 17.2560, 58.8497)
Luminance0.1726 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AE42CC #60CC42
analogous
#6942CC #AE42CC #CC42A5
triadic
#AE42CC #CCAE42 #42CCAE
tetradic
#AE42CC #CC6942 #60CC42 #42A5CC
square
#AE42CC #CC6942 #60CC42 #42A5CC
split-complementary
#AE42CC #A5CC42 #42CC69
monochromatic
#621F74 #8A2CA4 #AE42CC #C372D9 #D7A2E6

Accessibility & contrast

On white

4.72
#AE42CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#AE42CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AE42CC
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AE42CC#FFFFFF#000000##FFFFFF
##AE42CC1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#4877C9
Tritanopia (blue-blind)
#AD5C82
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ae42cc;
/* rgb */ color: rgb(174, 66, 204);
/* oklch */ color: oklch(58.4% 0.216 318.1);
Tailwind
colors: {
  custom: {
    50: '#ca7fdc',
    500: '#ae42cc',
    950: '#000000',
  },
}
SCSS
$custom: #ae42cc;
$custom-light: #ca7fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#ae42cc",
  "rgb": {
    "r": 174,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 286.957,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.58429,
    "c": 0.21638,
    "h": 318.1
  },
  "luminance": 0.17255
}

Semantic roles & 50–950 ramp

primary
#AE42CC
secondary
#A4D397
accent
#E14768
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AE42CC

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

Preview Lab → · Contrast checker → · Palette generator →

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