#AE31B8#AE31B8

#AE31B8 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.6% C 0.219 H 324.7°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#AE31B8
RGBrgb(174, 49, 184)
HSLhsl(296, 58%, 46%)
HSVhsv(296, 73%, 72%)
CMYKcmyk(5.4%, 73.4%, 0%, 27.8%)
CIE-LABlab(45.16, 65.89, -45.41)
CIE-LCHlch(45.16, 80.02, 325.42°)
OKLaboklab(55.6% 0.1789 -0.1265)
OKLCHoklch(55.6% 0.219 324.7)
XYZxyz(27.2049, 14.6577, 46.7344)
Luminance0.1466 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AE31B8 #3BB831
analogous
#6B31B8 #AE31B8 #B8317E
triadic
#AE31B8 #B8AE31 #31B8AE
tetradic
#AE31B8 #B86B31 #3BB831 #317EB8
square
#AE31B8 #B86B31 #3BB831 #317EB8
split-complementary
#AE31B8 #7EB831 #31B86B
monochromatic
#531757 #802488 #AE31B8 #C855D2 #D885DE

Accessibility & contrast

On white

5.34
#AE31B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#AE31B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AE31B8
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AE31B8#FFFFFF#000000##FFFFFF
##AE31B81.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BC
Deuteranopia (green-blind)
#4C70B5
Tritanopia (blue-blind)
#B24972
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ae31b8;
/* rgb */ color: rgb(174, 49, 184);
/* oklch */ color: oklch(55.6% 0.219 324.7);
Tailwind
colors: {
  custom: {
    50: '#ca76ce',
    500: '#ae31b8',
    950: '#000000',
  },
}
SCSS
$custom: #ae31b8;
$custom-light: #ca76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ae31b8",
  "rgb": {
    "r": 174,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 295.556,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55603,
    "c": 0.2191,
    "h": 324.7
  },
  "luminance": 0.14656
}

Semantic roles & 50–950 ramp

primary
#AE31B8
secondary
#82C87D
accent
#E14752
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AE31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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