#AE31B2#AE31B2

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

Color values

HEX#AE31B2
RGBrgb(174, 49, 178)
HSLhsl(298, 57%, 45%)
HSVhsv(298, 72%, 70%)
CMYKcmyk(2.2%, 72.5%, 0%, 30.2%)
CIE-LABlab(44.82, 64.86, -42.43)
CIE-LCHlch(44.82, 77.51, 326.81°)
OKLaboklab(55.25% 0.1791 -0.1178)
OKLCHoklch(55.25% 0.214 326.7)
XYZxyz(26.5893, 14.4115, 43.4921)
Luminance0.1441 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AE31B2 #35B231
analogous
#6E31B2 #AE31B2 #B23175
triadic
#AE31B2 #B2AE31 #31B2AE
tetradic
#AE31B2 #B26E31 #35B231 #3175B2
square
#AE31B2 #B26E31 #35B231 #3175B2
split-complementary
#AE31B2 #75B231 #31B26E
monochromatic
#501752 #7F2482 #AE31B2 #CB51CF #DA81DC

Accessibility & contrast

On white

5.41
#AE31B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#AE31B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AE31B2
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AE31B2#FFFFFF#000000##FFFFFF
##AE31B21.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1160B6
Deuteranopia (green-blind)
#506FAF
Tritanopia (blue-blind)
#B3466F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ae31b2;
/* rgb */ color: rgb(174, 49, 178);
/* oklch */ color: oklch(55.2% 0.214 326.7);
Tailwind
colors: {
  custom: {
    50: '#ca76c9',
    500: '#ae31b2',
    950: '#000000',
  },
}
SCSS
$custom: #ae31b2;
$custom-light: #ca76c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ae31b2",
  "rgb": {
    "r": 174,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 298.14,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55246,
    "c": 0.21435,
    "h": 326.7
  },
  "luminance": 0.1441
}

Semantic roles & 50–950 ramp

primary
#AE31B2
secondary
#7CC579
accent
#E0484C
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AE31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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