#AB1FA4#AB1FA4

#AB1FA4 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.7% C 0.219 H 330.5°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#AB1FA4
RGBrgb(171, 31, 164)
HSLhsl(303, 69%, 40%)
HSVhsv(303, 82%, 67%)
CMYKcmyk(0%, 81.9%, 4.1%, 32.9%)
CIE-LABlab(41.72, 67.17, -39.07)
CIE-LCHlch(41.72, 77.71, 329.81°)
OKLaboklab(52.69% 0.1909 -0.108)
OKLCHoklch(52.69% 0.219 330.5)
XYZxyz(23.9854, 12.3202, 36.2295)
Luminance0.1232 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB1FA4 #1FAB26
analogous
#6C1FAB #AB1FA4 #AB1F5E
triadic
#AB1FA4 #A4AB1F #1FA4AB
tetradic
#AB1FA4 #AB6C1F #1FAB26 #1F5EAB
square
#AB1FA4 #AB6C1F #1FAB26 #1F5EAB
split-complementary
#AB1FA4 #5EAB1F #1FAB6C
monochromatic
#430C41 #771672 #AB1FA4 #D92ED1 #E362DC

Accessibility & contrast

On white

6.06
#AB1FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#AB1FA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB1FA4
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB1FA4#FFFFFF#000000##FFFFFF
##AB1FA41.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0157A7
Deuteranopia (green-blind)
#4E69A1
Tritanopia (blue-blind)
#B23563
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab1fa4;
/* rgb */ color: rgb(171, 31, 164);
/* oklch */ color: oklch(52.7% 0.219 330.5);
Tailwind
colors: {
  custom: {
    50: '#c86ebf',
    500: '#ab1fa4',
    950: '#000000',
  },
}
SCSS
$custom: #ab1fa4;
$custom-light: #c86ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab1fa4",
  "rgb": {
    "r": 171,
    "g": 31,
    "b": 164
  },
  "hsl": {
    "h": 303,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.52687,
    "c": 0.21932,
    "h": 330.5
  },
  "luminance": 0.12318
}

Semantic roles & 50–950 ramp

primary
#AB1FA4
secondary
#5EC764
accent
#EC443C
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AB1FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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