#AE31B3#AE31B3

#AE31B3 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.3% C 0.215 H 326.3°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#AE31B3
RGBrgb(174, 49, 179)
HSLhsl(298, 57%, 45%)
HSVhsv(298, 73%, 70%)
CMYKcmyk(2.8%, 72.6%, 0%, 29.8%)
CIE-LABlab(44.87, 65.03, -42.93)
CIE-LCHlch(44.87, 77.93, 326.57°)
OKLaboklab(55.31% 0.179 -0.1193)
OKLCHoklch(55.31% 0.215 326.3)
XYZxyz(26.6901, 14.4518, 44.0228)
Luminance0.1445 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AE31B3 #36B331
analogous
#6D31B3 #AE31B3 #B33177
triadic
#AE31B3 #B3AE31 #31B3AE
tetradic
#AE31B3 #B36D31 #36B331 #3177B3
square
#AE31B3 #B36D31 #36B331 #3177B3
split-complementary
#AE31B3 #77B331 #31B36D
monochromatic
#511753 #7F2483 #AE31B3 #CB52D0 #D982DD

Accessibility & contrast

On white

5.40
#AE31B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#AE31B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AE31B3
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AE31B3#FFFFFF#000000##FFFFFF
##AE31B31.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E60B7
Deuteranopia (green-blind)
#4F70B0
Tritanopia (blue-blind)
#B3466F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ae31b3;
/* rgb */ color: rgb(174, 49, 179);
/* oklch */ color: oklch(55.3% 0.215 326.3);
Tailwind
colors: {
  custom: {
    50: '#ca76ca',
    500: '#ae31b3',
    950: '#000000',
  },
}
SCSS
$custom: #ae31b3;
$custom-light: #ca76ca;
$custom-dark: #000000;
JSON
{
  "hex": "#ae31b3",
  "rgb": {
    "r": 174,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 297.692,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55305,
    "c": 0.21513,
    "h": 326.3
  },
  "luminance": 0.1445
}

Semantic roles & 50–950 ramp

primary
#AE31B3
secondary
#7DC67A
accent
#E0484D
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AE31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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