#AE31B1#AE31B1

#AE31B1 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.2% C 0.214 H 327.0°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#AE31B1
RGBrgb(174, 49, 177)
HSLhsl(299, 57%, 44%)
HSVhsv(299, 72%, 69%)
CMYKcmyk(1.7%, 72.3%, 0%, 30.6%)
CIE-LABlab(44.76, 64.70, -41.93)
CIE-LCHlch(44.76, 77.10, 327.05°)
OKLaboklab(55.19% 0.1791 -0.1164)
OKLCHoklch(55.19% 0.214 327)
XYZxyz(26.4892, 14.3715, 42.9652)
Luminance0.1437 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AE31B1 #34B131
analogous
#6E31B1 #AE31B1 #B13174
triadic
#AE31B1 #B1AE31 #31B1AE
tetradic
#AE31B1 #B16E31 #34B131 #3174B1
square
#AE31B1 #B16E31 #34B131 #3174B1
split-complementary
#AE31B1 #74B131 #31B16E
monochromatic
#501651 #7F2481 #AE31B1 #CC51CF #DA80DC

Accessibility & contrast

On white

5.42
#AE31B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#AE31B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AE31B1
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AE31B1#FFFFFF#000000##FFFFFF
##AE31B11.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1360B5
Deuteranopia (green-blind)
#516FAE
Tritanopia (blue-blind)
#B3456E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ae31b1;
/* rgb */ color: rgb(174, 49, 177);
/* oklch */ color: oklch(55.2% 0.214 327.0);
Tailwind
colors: {
  custom: {
    50: '#ca76c9',
    500: '#ae31b1',
    950: '#000000',
  },
}
SCSS
$custom: #ae31b1;
$custom-light: #ca76c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ae31b1",
  "rgb": {
    "r": 174,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 298.594,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55188,
    "c": 0.21356,
    "h": 327
  },
  "luminance": 0.1437
}

Semantic roles & 50–950 ramp

primary
#AE31B1
secondary
#7BC579
accent
#E0484B
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AE31B1

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

Preview Lab → · Contrast checker → · Palette generator →

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