#AB4FA9#AB4FA9

#AB4FA9 is a mid, vivid purple. Relative luminance 0.171; OKLCH L 57.6% C 0.165 H 328.3°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#AB4FA9
RGBrgb(171, 79, 169)
HSLhsl(301, 37%, 49%)
HSVhsv(301, 54%, 67%)
CMYKcmyk(0%, 53.8%, 1.2%, 32.9%)
CIE-LABlab(48.41, 50.06, -31.50)
CIE-LCHlch(48.41, 59.15, 327.82°)
OKLaboklab(57.61% 0.14 -0.0865)
OKLCHoklch(57.61% 0.165 328.3)
XYZxyz(26.7516, 17.1161, 39.4231)
Luminance0.1711 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4FA9 #4FAB51
analogous
#7F4FAB #AB4FA9 #AB4F7B
triadic
#AB4FA9 #A9AB4F #4FA9AB
tetradic
#AB4FA9 #AB7F4F #4FAB51 #4F7BAB
square
#AB4FA9 #AB7F4F #4FAB51 #4F7BAB
split-complementary
#AB4FA9 #7BAB4F #4FAB7F
monochromatic
#572856 #813C80 #AB4FA9 #C077BF #D4A1D2

Accessibility & contrast

On white

4.75
#AB4FA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#AB4FA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4FA9
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4FA9#FFFFFF#000000##FFFFFF
##AB4FA91.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#476BAC
Deuteranopia (green-blind)
#6477A6
Tritanopia (blue-blind)
#B05975
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab4fa9;
/* rgb */ color: rgb(171, 79, 169);
/* oklch */ color: oklch(57.6% 0.165 328.3);
Tailwind
colors: {
  custom: {
    50: '#c685c3',
    500: '#ab4fa9',
    950: '#000000',
  },
}
SCSS
$custom: #ab4fa9;
$custom-light: #c685c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4fa9",
  "rgb": {
    "r": 171,
    "g": 79,
    "b": 169
  },
  "hsl": {
    "h": 301.304,
    "s": 36.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57609,
    "c": 0.16452,
    "h": 328.3
  },
  "luminance": 0.17114
}

Semantic roles & 50–950 ramp

primary
#AB4FA9
secondary
#95C196
accent
#CD5D5B
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130B12
muted
#827C81

Preview Lab

Preview with #AB4FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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