#AB4FA5#AB4FA5

#AB4FA5 is a mid, vivid purple. Relative luminance 0.170; OKLCH L 57.4% C 0.161 H 330.0°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#AB4FA5
RGBrgb(171, 79, 165)
HSLhsl(304, 37%, 49%)
HSVhsv(304, 54%, 67%)
CMYKcmyk(0%, 53.8%, 3.5%, 32.9%)
CIE-LABlab(48.22, 49.35, -29.44)
CIE-LCHlch(48.22, 57.46, 329.18°)
OKLaboklab(57.41% 0.1394 -0.0806)
OKLCHoklch(57.41% 0.161 330)
XYZxyz(26.3819, 16.9682, 37.4756)
Luminance0.1697 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4FA5 #4FAB55
analogous
#834FAB #AB4FA5 #AB4F77
triadic
#AB4FA5 #A5AB4F #4FA5AB
tetradic
#AB4FA5 #AB834F #4FAB55 #4F77AB
square
#AB4FA5 #AB834F #4FAB55 #4F77AB
split-complementary
#AB4FA5 #77AB4F #4FAB83
monochromatic
#572854 #813C7D #AB4FA5 #C077BB #D4A1D0

Accessibility & contrast

On white

4.78
#AB4FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#AB4FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4FA5
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4FA5#FFFFFF#000000##FFFFFF
##AB4FA51.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#496AA8
Deuteranopia (green-blind)
#6577A2
Tritanopia (blue-blind)
#B15773
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab4fa5;
/* rgb */ color: rgb(171, 79, 165);
/* oklch */ color: oklch(57.4% 0.161 330.0);
Tailwind
colors: {
  custom: {
    50: '#c685c0',
    500: '#ab4fa5',
    950: '#000000',
  },
}
SCSS
$custom: #ab4fa5;
$custom-light: #c685c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4fa5",
  "rgb": {
    "r": 171,
    "g": 79,
    "b": 165
  },
  "hsl": {
    "h": 303.913,
    "s": 36.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57411,
    "c": 0.16097,
    "h": 330
  },
  "luminance": 0.16967
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB4FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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