#AB1FA6#AB1FA6

#AB1FA6 is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.8% C 0.221 H 329.8°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#AB1FA6
RGBrgb(171, 31, 166)
HSLhsl(302, 69%, 40%)
HSVhsv(302, 82%, 67%)
CMYKcmyk(0%, 81.9%, 2.9%, 32.9%)
CIE-LABlab(41.83, 67.48, -40.09)
CIE-LCHlch(41.83, 78.49, 329.29°)
OKLaboklab(52.8% 0.1908 -0.1109)
OKLCHoklch(52.8% 0.221 329.8)
XYZxyz(24.1674, 12.3930, 37.1882)
Luminance0.1239 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB1FA6 #1FAB24
analogous
#6A1FAB #AB1FA6 #AB1F60
triadic
#AB1FA6 #A6AB1F #1FA6AB
tetradic
#AB1FA6 #AB6A1F #1FAB24 #1F60AB
square
#AB1FA6 #AB6A1F #1FAB24 #1F60AB
split-complementary
#AB1FA6 #60AB1F #1FAB6A
monochromatic
#430C41 #771674 #AB1FA6 #D92ED3 #E362DE

Accessibility & contrast

On white

6.04
#AB1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#AB1FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB1FA6
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB1FA6#FFFFFF#000000##FFFFFF
##AB1FA61.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057A9
Deuteranopia (green-blind)
#4D69A3
Tritanopia (blue-blind)
#B13664
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab1fa6;
/* rgb */ color: rgb(171, 31, 166);
/* oklch */ color: oklch(52.8% 0.221 329.8);
Tailwind
colors: {
  custom: {
    50: '#c86ec1',
    500: '#ab1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #ab1fa6;
$custom-light: #c86ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab1fa6",
  "rgb": {
    "r": 171,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 302.143,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.52804,
    "c": 0.22074,
    "h": 329.8
  },
  "luminance": 0.12391
}

Semantic roles & 50–950 ramp

primary
#AB1FA6
secondary
#5EC762
accent
#EC423C
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AB1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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