#AB1FA5#AB1FA5

#AB1FA5 is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.7% C 0.220 H 330.2°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#AB1FA5
RGBrgb(171, 31, 165)
HSLhsl(303, 69%, 40%)
HSVhsv(303, 82%, 67%)
CMYKcmyk(0%, 81.9%, 3.5%, 32.9%)
CIE-LABlab(41.78, 67.32, -39.58)
CIE-LCHlch(41.78, 78.10, 329.55°)
OKLaboklab(52.75% 0.1909 -0.1095)
OKLCHoklch(52.75% 0.22 330.2)
XYZxyz(24.0760, 12.3565, 36.7070)
Luminance0.1235 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB1FA5 #1FAB25
analogous
#6B1FAB #AB1FA5 #AB1F5F
triadic
#AB1FA5 #A5AB1F #1FA5AB
tetradic
#AB1FA5 #AB6B1F #1FAB25 #1F5FAB
square
#AB1FA5 #AB6B1F #1FAB25 #1F5FAB
split-complementary
#AB1FA5 #5FAB1F #1FAB6B
monochromatic
#430C41 #771673 #AB1FA5 #D92ED2 #E362DD

Accessibility & contrast

On white

6.05
#AB1FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#AB1FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB1FA5
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB1FA5#FFFFFF#000000##FFFFFF
##AB1FA51.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057A8
Deuteranopia (green-blind)
#4E69A2
Tritanopia (blue-blind)
#B23663
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ab1fa5;
/* rgb */ color: rgb(171, 31, 165);
/* oklch */ color: oklch(52.7% 0.220 330.2);
Tailwind
colors: {
  custom: {
    50: '#c86ec0',
    500: '#ab1fa5',
    950: '#000000',
  },
}
SCSS
$custom: #ab1fa5;
$custom-light: #c86ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab1fa5",
  "rgb": {
    "r": 171,
    "g": 31,
    "b": 165
  },
  "hsl": {
    "h": 302.571,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.52745,
    "c": 0.22002,
    "h": 330.2
  },
  "luminance": 0.12355
}

Semantic roles & 50–950 ramp

primary
#AB1FA5
secondary
#5EC763
accent
#EC433C
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AB1FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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