#AB1FA1#AB1FA1

#AB1FA1 is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.5% C 0.217 H 331.5°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#AB1FA1
RGBrgb(171, 31, 161)
HSLhsl(304, 69%, 40%)
HSVhsv(304, 82%, 67%)
CMYKcmyk(0%, 81.9%, 5.8%, 32.9%)
CIE-LABlab(41.55, 66.71, -37.54)
CIE-LCHlch(41.55, 76.55, 330.63°)
OKLaboklab(52.51% 0.1909 -0.1035)
OKLCHoklch(52.51% 0.217 331.5)
XYZxyz(23.7176, 12.2131, 34.8195)
Luminance0.1221 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB1FA1 #1FAB29
analogous
#6F1FAB #AB1FA1 #AB1F5B
triadic
#AB1FA1 #A1AB1F #1FA1AB
tetradic
#AB1FA1 #AB6F1F #1FAB29 #1F5BAB
square
#AB1FA1 #AB6F1F #1FAB29 #1F5BAB
split-complementary
#AB1FA1 #5BAB1F #1FAB6F
monochromatic
#430C3F #771670 #AB1FA1 #D92ECD #E362D9

Accessibility & contrast

On white

6.10
#AB1FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#AB1FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB1FA1
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB1FA1#FFFFFF#000000##FFFFFF
##AB1FA11.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B56A4
Deuteranopia (green-blind)
#50699E
Tritanopia (blue-blind)
#B23361
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab1fa1;
/* rgb */ color: rgb(171, 31, 161);
/* oklch */ color: oklch(52.5% 0.217 331.5);
Tailwind
colors: {
  custom: {
    50: '#c86ebd',
    500: '#ab1fa1',
    950: '#000000',
  },
}
SCSS
$custom: #ab1fa1;
$custom-light: #c86ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab1fa1",
  "rgb": {
    "r": 171,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 304.286,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.52514,
    "c": 0.21718,
    "h": 331.5
  },
  "luminance": 0.12211
}

Semantic roles & 50–950 ramp

primary
#AB1FA1
secondary
#5EC766
accent
#EC483C
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AB1FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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