#AB31AA#AB31AA

#AB31AA is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.3% C 0.207 H 328.3°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#AB31AA
RGBrgb(171, 49, 170)
HSLhsl(300, 55%, 43%)
HSVhsv(300, 71%, 67%)
CMYKcmyk(0%, 71.3%, 0.6%, 32.9%)
CIE-LABlab(43.88, 62.87, -39.21)
CIE-LCHlch(43.88, 74.10, 328.05°)
OKLaboklab(54.34% 0.1758 -0.1085)
OKLCHoklch(54.34% 0.207 328.3)
XYZxyz(25.1483, 13.7586, 39.3535)
Luminance0.1376 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB31AA #31AB32
analogous
#6F31AB #AB31AA #AB316D
triadic
#AB31AA #AAAB31 #31AAAB
tetradic
#AB31AA #AB6F31 #31AB32 #316DAB
square
#AB31AA #AB6F31 #31AB32 #316DAB
split-complementary
#AB31AA #6DAB31 #31AB6F
monochromatic
#4C164B #7B237B #AB31AA #CC4DCB #DA7DD9

Accessibility & contrast

On white

5.60
#AB31AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#AB31AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB31AA
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB31AA#FFFFFF#000000##FFFFFF
##AB31AA1.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5DAD
Deuteranopia (green-blind)
#526DA7
Tritanopia (blue-blind)
#B1436A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab31aa;
/* rgb */ color: rgb(171, 49, 170);
/* oklch */ color: oklch(54.3% 0.207 328.3);
Tailwind
colors: {
  custom: {
    50: '#c875c4',
    500: '#ab31aa',
    950: '#000000',
  },
}
SCSS
$custom: #ab31aa;
$custom-light: #c875c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab31aa",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 300.492,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.5434,
    "c": 0.20662,
    "h": 328.3
  },
  "luminance": 0.13757
}

Semantic roles & 50–950 ramp

primary
#AB31AA
secondary
#75C276
accent
#DF4A49
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AB31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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