#AE42C7#AE42C7

#AE42C7 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.1% C 0.212 H 319.5°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#AE42C7
RGBrgb(174, 66, 199)
HSLhsl(289, 54%, 52%)
HSVhsv(289, 67%, 78%)
CMYKcmyk(12.6%, 66.8%, 0%, 22%)
CIE-LABlab(48.29, 62.25, -49.16)
CIE-LCHlch(48.29, 79.32, 321.70°)
OKLaboklab(58.12% 0.1612 -0.1375)
OKLCHoklch(58.12% 0.212 319.5)
XYZxyz(29.7113, 17.0200, 55.7419)
Luminance0.1702 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AE42C7 #5BC742
analogous
#6C42C7 #AE42C7 #C7429E
triadic
#AE42C7 #C7AE42 #42C7AE
tetradic
#AE42C7 #C76C42 #5BC742 #429EC7
square
#AE42C7 #C76C42 #5BC742 #429EC7
split-complementary
#AE42C7 #9EC742 #42C76C
monochromatic
#5F216E #882F9D #AE42C7 #C271D5 #D6A0E3

Accessibility & contrast

On white

4.77
#AE42C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#AE42C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AE42C7
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AE42C7#FFFFFF#000000##FFFFFF
##AE42C71.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F6BCB
Deuteranopia (green-blind)
#4C76C4
Tritanopia (blue-blind)
#AE5A7F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ae42c7;
/* rgb */ color: rgb(174, 66, 199);
/* oklch */ color: oklch(58.1% 0.212 319.5);
Tailwind
colors: {
  custom: {
    50: '#ca7fd9',
    500: '#ae42c7',
    950: '#000000',
  },
}
SCSS
$custom: #ae42c7;
$custom-light: #ca7fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#ae42c7",
  "rgb": {
    "r": 174,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 288.722,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.58121,
    "c": 0.21189,
    "h": 319.5
  },
  "luminance": 0.17019
}

Semantic roles & 50–950 ramp

primary
#AE42C7
secondary
#A0D095
accent
#DE4A66
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B15
muted
#827C83

Preview Lab

Preview with #AE42C7

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

Preview Lab → · Contrast checker → · Palette generator →

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