#AB31AF#AB31AF

#AB31AF is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.6% C 0.211 H 326.6°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#AB31AF
RGBrgb(171, 49, 175)
HSLhsl(298, 56%, 44%)
HSVhsv(298, 72%, 69%)
CMYKcmyk(2.3%, 72%, 0%, 31.4%)
CIE-LABlab(44.16, 63.71, -41.73)
CIE-LCHlch(44.16, 76.16, 326.77°)
OKLaboklab(54.63% 0.1758 -0.1158)
OKLCHoklch(54.63% 0.211 326.6)
XYZxyz(25.6303, 13.9514, 41.8921)
Luminance0.1395 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB31AF #35AF31
analogous
#6C31AF #AB31AF #AF3174
triadic
#AB31AF #AFAB31 #31AFAB
tetradic
#AB31AF #AF6C31 #35AF31 #3174AF
square
#AB31AF #AF6C31 #35AF31 #3174AF
split-complementary
#AB31AF #74AF31 #31AF6C
monochromatic
#4E164F #7C247F #AB31AF #CA4FCE #D87FDB

Accessibility & contrast

On white

5.54
#AB31AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#AB31AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB31AF
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB31AF#FFFFFF#000000##FFFFFF
##AB31AF1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135FB2
Deuteranopia (green-blind)
#4F6EAC
Tritanopia (blue-blind)
#B0456D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab31af;
/* rgb */ color: rgb(171, 49, 175);
/* oklch */ color: oklch(54.6% 0.211 326.6);
Tailwind
colors: {
  custom: {
    50: '#c875c7',
    500: '#ab31af',
    950: '#000000',
  },
}
SCSS
$custom: #ab31af;
$custom-light: #c875c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab31af",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 298.095,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.54629,
    "c": 0.21056,
    "h": 326.6
  },
  "luminance": 0.1395
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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