#AE42AB#AE42AB

#AE42AB is a mid, vivid purple. Relative luminance 0.158; OKLCH L 56.5% C 0.188 H 328.8°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#AE42AB
RGBrgb(174, 66, 171)
HSLhsl(302, 45%, 47%)
HSVhsv(302, 62%, 68%)
CMYKcmyk(0%, 62.1%, 1.7%, 31.8%)
CIE-LABlab(46.76, 57.17, -35.23)
CIE-LCHlch(46.76, 67.15, 328.35°)
OKLaboklab(56.53% 0.1605 -0.0971)
OKLCHoklch(56.53% 0.188 328.8)
XYZxyz(26.7542, 15.8372, 40.1679)
Luminance0.1583 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AE42AB #42AE45
analogous
#7B42AE #AE42AB #AE4275
triadic
#AE42AB #ABAE42 #42ABAE
tetradic
#AE42AB #AE7B42 #42AE45 #4275AE
square
#AE42AB #AE7B42 #42AE45 #4275AE
split-complementary
#AE42AB #75AE42 #42AE7B
monochromatic
#552054 #82317F #AE42AB #C668C3 #D694D5

Accessibility & contrast

On white

5.04
#AE42AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#AE42AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AE42AB
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AE42AB#FFFFFF#000000##FFFFFF
##AE42AB1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3766AE
Deuteranopia (green-blind)
#5D74A8
Tritanopia (blue-blind)
#B44F70
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ae42ab;
/* rgb */ color: rgb(174, 66, 171);
/* oklch */ color: oklch(56.5% 0.188 328.8);
Tailwind
colors: {
  custom: {
    50: '#c97ec4',
    500: '#ae42ab',
    950: '#000000',
  },
}
SCSS
$custom: #ae42ab;
$custom-light: #c97ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#ae42ab",
  "rgb": {
    "r": 174,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 301.667,
    "s": 45,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56526,
    "c": 0.18753,
    "h": 328.8
  },
  "luminance": 0.15835
}

Semantic roles & 50–950 ramp

primary
#AE42AB
secondary
#8AC28B
accent
#D55753
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AE42AB

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

Preview Lab → · Contrast checker → · Palette generator →

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