#AB31A7#AB31A7

#AB31A7 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.2% C 0.204 H 329.4°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#AB31A7
RGBrgb(171, 49, 167)
HSLhsl(302, 55%, 43%)
HSVhsv(302, 71%, 67%)
CMYKcmyk(0%, 71.3%, 2.3%, 32.9%)
CIE-LABlab(43.72, 62.37, -37.69)
CIE-LCHlch(43.72, 72.88, 328.86°)
OKLaboklab(54.17% 0.1758 -0.1041)
OKLCHoklch(54.17% 0.204 329.4)
XYZxyz(24.8678, 13.6464, 37.8760)
Luminance0.1364 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB31A7 #31AB35
analogous
#7231AB #AB31A7 #AB316A
triadic
#AB31A7 #A7AB31 #31A7AB
tetradic
#AB31A7 #AB7231 #31AB35 #316AAB
square
#AB31A7 #AB7231 #31AB35 #316AAB
split-complementary
#AB31A7 #6AAB31 #31AB72
monochromatic
#4C164A #7B2379 #AB31A7 #CC4DC8 #DA7DD7

Accessibility & contrast

On white

5.63
#AB31A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#AB31A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB31A7
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB31A7#FFFFFF#000000##FFFFFF
##AB31A71.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215DAA
Deuteranopia (green-blind)
#546DA4
Tritanopia (blue-blind)
#B14269
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab31a7;
/* rgb */ color: rgb(171, 49, 167);
/* oklch */ color: oklch(54.2% 0.204 329.4);
Tailwind
colors: {
  custom: {
    50: '#c875c1',
    500: '#ab31a7',
    950: '#000000',
  },
}
SCSS
$custom: #ab31a7;
$custom-light: #c875c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab31a7",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 301.967,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.5417,
    "c": 0.20428,
    "h": 329.4
  },
  "luminance": 0.13645
}

Semantic roles & 50–950 ramp

primary
#AB31A7
secondary
#75C278
accent
#DF4E49
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB31A7

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

Preview Lab → · Contrast checker → · Palette generator →

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