#AB31AE#AB31AE

#AB31AE is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.6% C 0.210 H 327.0°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#AB31AE
RGBrgb(171, 49, 174)
HSLhsl(299, 56%, 44%)
HSVhsv(299, 72%, 68%)
CMYKcmyk(1.7%, 71.8%, 0%, 31.8%)
CIE-LABlab(44.11, 63.54, -41.23)
CIE-LCHlch(44.11, 75.74, 327.02°)
OKLaboklab(54.57% 0.1758 -0.1144)
OKLCHoklch(54.57% 0.21 327)
XYZxyz(25.5325, 13.9123, 41.3767)
Luminance0.1391 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB31AE #34AE31
analogous
#6C31AE #AB31AE #AE3172
triadic
#AB31AE #AEAB31 #31AEAB
tetradic
#AB31AE #AE6C31 #34AE31 #3172AE
square
#AB31AE #AE6C31 #34AE31 #3172AE
split-complementary
#AB31AE #72AE31 #31AE6C
monochromatic
#4D164E #7C247E #AB31AE #CA4FCD #D97FDB

Accessibility & contrast

On white

5.55
#AB31AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#AB31AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB31AE
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB31AE#FFFFFF#000000##FFFFFF
##AB31AE1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155EB1
Deuteranopia (green-blind)
#506EAB
Tritanopia (blue-blind)
#B0456D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab31ae;
/* rgb */ color: rgb(171, 49, 174);
/* oklch */ color: oklch(54.6% 0.210 327.0);
Tailwind
colors: {
  custom: {
    50: '#c875c7',
    500: '#ab31ae',
    950: '#000000',
  },
}
SCSS
$custom: #ab31ae;
$custom-light: #c875c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab31ae",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 298.56,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54571,
    "c": 0.20976,
    "h": 327
  },
  "luminance": 0.13911
}

Semantic roles & 50–950 ramp

primary
#AB31AE
secondary
#79C477
accent
#DF484C
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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