#AE42B2#AE42B2

#AE42B2 is a mid, vivid purple. Relative luminance 0.161; OKLCH L 56.9% C 0.193 H 326.3°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#AE42B2
RGBrgb(174, 66, 178)
HSLhsl(298, 46%, 48%)
HSVhsv(298, 63%, 70%)
CMYKcmyk(2.2%, 62.9%, 0%, 30.2%)
CIE-LABlab(47.12, 58.39, -38.78)
CIE-LCHlch(47.12, 70.09, 326.41°)
OKLaboklab(56.9% 0.1609 -0.1073)
OKLCHoklch(56.9% 0.193 326.3)
XYZxyz(27.4391, 16.1112, 43.7754)
Luminance0.1611 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AE42B2 #46B242
analogous
#7642B2 #AE42B2 #B2427E
triadic
#AE42B2 #B2AE42 #42B2AE
tetradic
#AE42B2 #B27642 #46B242 #427EB2
square
#AE42B2 #B27642 #46B242 #427EB2
split-complementary
#AE42B2 #7EB242 #42B276
monochromatic
#572159 #823185 #AE42B2 #C46AC8 #D696D8

Accessibility & contrast

On white

4.97
#AE42B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#AE42B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AE42B2
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AE42B2#FFFFFF#000000##FFFFFF
##AE42B21.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3167B5
Deuteranopia (green-blind)
#5975AF
Tritanopia (blue-blind)
#B25174
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ae42b2;
/* rgb */ color: rgb(174, 66, 178);
/* oklch */ color: oklch(56.9% 0.193 326.3);
Tailwind
colors: {
  custom: {
    50: '#c97ec9',
    500: '#ae42b2',
    950: '#000000',
  },
}
SCSS
$custom: #ae42b2;
$custom-light: #c97ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#ae42b2",
  "rgb": {
    "r": 174,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 297.857,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.56904,
    "c": 0.19344,
    "h": 326.3
  },
  "luminance": 0.16109
}

Semantic roles & 50–950 ramp

primary
#AE42B2
secondary
#8EC48C
accent
#D65257
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AE42B2

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

Preview Lab → · Contrast checker → · Palette generator →

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