#AE40B2#AE40B2

#AE40B2 is a mid, vivid purple. Relative luminance 0.159; OKLCH L 56.7% C 0.196 H 326.3°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AE40B2
RGBrgb(174, 64, 178)
HSLhsl(298, 47%, 47%)
HSVhsv(298, 64%, 70%)
CMYKcmyk(2.2%, 64%, 0%, 30.2%)
CIE-LABlab(46.82, 59.22, -39.26)
CIE-LCHlch(46.82, 71.06, 326.46°)
OKLaboklab(56.69% 0.1633 -0.1087)
OKLCHoklch(56.69% 0.196 326.3)
XYZxyz(27.3243, 15.8815, 43.7371)
Luminance0.1588 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AE40B2 #44B240
analogous
#7540B2 #AE40B2 #B2407D
triadic
#AE40B2 #B2AE40 #40B2AE
tetradic
#AE40B2 #B27540 #44B240 #407DB2
square
#AE40B2 #B27540 #44B240 #407DB2
split-complementary
#AE40B2 #7DB240 #40B275
monochromatic
#562058 #823085 #AE40B2 #C567C8 #D694D8

Accessibility & contrast

On white

5.03
#AE40B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#AE40B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AE40B2
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AE40B2#FFFFFF#000000##FFFFFF
##AE40B21.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E66B5
Deuteranopia (green-blind)
#5874AF
Tritanopia (blue-blind)
#B25073
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ae40b2;
/* rgb */ color: rgb(174, 64, 178);
/* oklch */ color: oklch(56.7% 0.196 326.3);
Tailwind
colors: {
  custom: {
    50: '#c97dc9',
    500: '#ae40b2',
    950: '#000000',
  },
}
SCSS
$custom: #ae40b2;
$custom-light: #c97dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#ae40b2",
  "rgb": {
    "r": 174,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 297.895,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.56686,
    "c": 0.19614,
    "h": 326.3
  },
  "luminance": 0.1588
}

Semantic roles & 50–950 ramp

primary
#AE40B2
secondary
#8CC48A
accent
#D75156
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AE40B2

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

Preview Lab → · Contrast checker → · Palette generator →

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