#AB1FA3#AB1FA3

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

Color values

HEX#AB1FA3
RGBrgb(171, 31, 163)
HSLhsl(303, 69%, 40%)
HSVhsv(303, 82%, 67%)
CMYKcmyk(0%, 81.9%, 4.7%, 32.9%)
CIE-LABlab(41.66, 67.02, -38.56)
CIE-LCHlch(41.66, 77.32, 330.08°)
OKLaboklab(52.63% 0.1909 -0.1065)
OKLCHoklch(52.63% 0.219 330.8)
XYZxyz(23.8954, 12.2842, 35.7558)
Luminance0.1228 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB1FA3 #1FAB27
analogous
#6D1FAB #AB1FA3 #AB1F5D
triadic
#AB1FA3 #A3AB1F #1FA3AB
tetradic
#AB1FA3 #AB6D1F #1FAB27 #1F5DAB
square
#AB1FA3 #AB6D1F #1FAB27 #1F5DAB
split-complementary
#AB1FA3 #5DAB1F #1FAB6D
monochromatic
#430C40 #771672 #AB1FA3 #D92ECF #E362DB

Accessibility & contrast

On white

6.08
#AB1FA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB1FA3
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB1FA3#FFFFFF#000000##FFFFFF
##AB1FA31.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0556A6
Deuteranopia (green-blind)
#4F69A0
Tritanopia (blue-blind)
#B23462
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ab1fa3;
/* rgb */ color: rgb(171, 31, 163);
/* oklch */ color: oklch(52.6% 0.219 330.8);
Tailwind
colors: {
  custom: {
    50: '#c86ebf',
    500: '#ab1fa3',
    950: '#000000',
  },
}
SCSS
$custom: #ab1fa3;
$custom-light: #c86ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab1fa3",
  "rgb": {
    "r": 171,
    "g": 31,
    "b": 163
  },
  "hsl": {
    "h": 303.429,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.52629,
    "c": 0.2186,
    "h": 330.8
  },
  "luminance": 0.12282
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB1FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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