#AE31B5#AE31B5

#AE31B5 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.4% C 0.217 H 325.7°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#AE31B5
RGBrgb(174, 49, 181)
HSLhsl(297, 57%, 45%)
HSVhsv(297, 73%, 71%)
CMYKcmyk(3.9%, 72.9%, 0%, 29%)
CIE-LABlab(44.99, 65.37, -43.93)
CIE-LCHlch(44.99, 78.76, 326.10°)
OKLaboklab(55.42% 0.179 -0.1222)
OKLCHoklch(55.42% 0.217 325.7)
XYZxyz(26.8938, 14.5333, 45.0958)
Luminance0.1453 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AE31B5 #38B531
analogous
#6C31B5 #AE31B5 #B5317A
triadic
#AE31B5 #B5AE31 #31B5AE
tetradic
#AE31B5 #B56C31 #38B531 #317AB5
square
#AE31B5 #B56C31 #38B531 #317AB5
split-complementary
#AE31B5 #7AB531 #31B56C
monochromatic
#511755 #802485 #AE31B5 #CA53D0 #D983DD

Accessibility & contrast

On white

5.38
#AE31B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#AE31B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AE31B5
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AE31B5#FFFFFF#000000##FFFFFF
##AE31B51.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0761B9
Deuteranopia (green-blind)
#4E70B2
Tritanopia (blue-blind)
#B24771
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ae31b5;
/* rgb */ color: rgb(174, 49, 181);
/* oklch */ color: oklch(55.4% 0.217 325.7);
Tailwind
colors: {
  custom: {
    50: '#ca76cc',
    500: '#ae31b5',
    950: '#000000',
  },
}
SCSS
$custom: #ae31b5;
$custom-light: #ca76cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ae31b5",
  "rgb": {
    "r": 174,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 296.818,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55423,
    "c": 0.21672,
    "h": 325.7
  },
  "luminance": 0.14531
}

Semantic roles & 50–950 ramp

primary
#AE31B5
secondary
#7FC77B
accent
#E1474F
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AE31B5

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

Preview Lab → · Contrast checker → · Palette generator →

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