#AB4FA6#AB4FA6

#AB4FA6 is a mid, vivid purple. Relative luminance 0.170; OKLCH L 57.5% C 0.162 H 329.5°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#AB4FA6
RGBrgb(171, 79, 166)
HSLhsl(303, 37%, 49%)
HSVhsv(303, 54%, 67%)
CMYKcmyk(0%, 53.8%, 2.9%, 32.9%)
CIE-LABlab(48.27, 49.52, -29.95)
CIE-LCHlch(48.27, 57.88, 328.83°)
OKLaboklab(57.46% 0.1395 -0.0821)
OKLCHoklch(57.46% 0.162 329.5)
XYZxyz(26.4732, 17.0047, 37.9569)
Luminance0.1700 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4FA6 #4FAB54
analogous
#824FAB #AB4FA6 #AB4F78
triadic
#AB4FA6 #A6AB4F #4FA6AB
tetradic
#AB4FA6 #AB824F #4FAB54 #4F78AB
square
#AB4FA6 #AB824F #4FAB54 #4F78AB
split-complementary
#AB4FA6 #78AB4F #4FAB82
monochromatic
#572855 #813C7D #AB4FA6 #C077BC #D4A1D1

Accessibility & contrast

On white

4.77
#AB4FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#AB4FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4FA6
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4FA6#FFFFFF#000000##FFFFFF
##AB4FA61.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#496BA9
Deuteranopia (green-blind)
#6577A3
Tritanopia (blue-blind)
#B15873
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab4fa6;
/* rgb */ color: rgb(171, 79, 166);
/* oklch */ color: oklch(57.5% 0.162 329.5);
Tailwind
colors: {
  custom: {
    50: '#c685c0',
    500: '#ab4fa6',
    950: '#000000',
  },
}
SCSS
$custom: #ab4fa6;
$custom-light: #c685c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4fa6",
  "rgb": {
    "r": 171,
    "g": 79,
    "b": 166
  },
  "hsl": {
    "h": 303.261,
    "s": 36.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.5746,
    "c": 0.16186,
    "h": 329.5
  },
  "luminance": 0.17003
}

Semantic roles & 50–950 ramp

primary
#AB4FA6
secondary
#95C198
accent
#CD615B
background
#FCF8FB
surface
#F8EFF7
border
#D1CAD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AB4FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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