#AE31B4#AE31B4

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

Color values

HEX#AE31B4
RGBrgb(174, 49, 180)
HSLhsl(297, 57%, 45%)
HSVhsv(297, 73%, 71%)
CMYKcmyk(3.3%, 72.8%, 0%, 29.4%)
CIE-LABlab(44.93, 65.20, -43.43)
CIE-LCHlch(44.93, 78.34, 326.33°)
OKLaboklab(55.36% 0.179 -0.1207)
OKLCHoklch(55.36% 0.216 326)
XYZxyz(26.7916, 14.4924, 44.5573)
Luminance0.1449 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AE31B4 #37B431
analogous
#6D31B4 #AE31B4 #B43178
triadic
#AE31B4 #B4AE31 #31B4AE
tetradic
#AE31B4 #B46D31 #37B431 #3178B4
square
#AE31B4 #B46D31 #37B431 #3178B4
split-complementary
#AE31B4 #78B431 #31B46D
monochromatic
#511754 #7F2484 #AE31B4 #CA52D0 #D982DD

Accessibility & contrast

On white

5.39
#AE31B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#AE31B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AE31B4
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AE31B4#FFFFFF#000000##FFFFFF
##AE31B41.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B60B8
Deuteranopia (green-blind)
#4F70B1
Tritanopia (blue-blind)
#B24770
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ae31b4;
/* rgb */ color: rgb(174, 49, 180);
/* oklch */ color: oklch(55.4% 0.216 326.0);
Tailwind
colors: {
  custom: {
    50: '#ca76cb',
    500: '#ae31b4',
    950: '#000000',
  },
}
SCSS
$custom: #ae31b4;
$custom-light: #ca76cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ae31b4",
  "rgb": {
    "r": 174,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 297.252,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.55364,
    "c": 0.21592,
    "h": 326
  },
  "luminance": 0.14491
}

Semantic roles & 50–950 ramp

primary
#AE31B4
secondary
#7EC67B
accent
#E0474E
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AE31B4

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

Preview Lab → · Contrast checker → · Palette generator →

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