#AB4FA7#AB4FA7

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

Color values

HEX#AB4FA7
RGBrgb(171, 79, 167)
HSLhsl(303, 37%, 49%)
HSVhsv(303, 54%, 67%)
CMYKcmyk(0%, 53.8%, 2.3%, 32.9%)
CIE-LABlab(48.31, 49.70, -30.47)
CIE-LCHlch(48.31, 58.30, 328.49°)
OKLaboklab(57.51% 0.1397 -0.0835)
OKLCHoklch(57.51% 0.163 329.1)
XYZxyz(26.5653, 17.0415, 38.4418)
Luminance0.1704 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4FA7 #4FAB53
analogous
#814FAB #AB4FA7 #AB4F79
triadic
#AB4FA7 #A7AB4F #4FA7AB
tetradic
#AB4FA7 #AB814F #4FAB53 #4F79AB
square
#AB4FA7 #AB814F #4FAB53 #4F79AB
split-complementary
#AB4FA7 #79AB4F #4FAB81
monochromatic
#572855 #813C7E #AB4FA7 #C077BD #D4A1D1

Accessibility & contrast

On white

4.76
#AB4FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#AB4FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4FA7
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4FA7#FFFFFF#000000##FFFFFF
##AB4FA71.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#486BAA
Deuteranopia (green-blind)
#6577A4
Tritanopia (blue-blind)
#B05874
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab4fa7;
/* rgb */ color: rgb(171, 79, 167);
/* oklch */ color: oklch(57.5% 0.163 329.1);
Tailwind
colors: {
  custom: {
    50: '#c685c1',
    500: '#ab4fa7',
    950: '#000000',
  },
}
SCSS
$custom: #ab4fa7;
$custom-light: #c685c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4fa7",
  "rgb": {
    "r": 171,
    "g": 79,
    "b": 167
  },
  "hsl": {
    "h": 302.609,
    "s": 36.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57509,
    "c": 0.16274,
    "h": 329.1
  },
  "luminance": 0.1704
}

Semantic roles & 50–950 ramp

primary
#AB4FA7
secondary
#95C197
accent
#CD605B
background
#FCF8FB
surface
#F8EFF7
border
#D1CAD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AB4FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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