#AB4FA8#AB4FA8

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

Color values

HEX#AB4FA8
RGBrgb(171, 79, 168)
HSLhsl(302, 37%, 49%)
HSVhsv(302, 54%, 67%)
CMYKcmyk(0%, 53.8%, 1.8%, 32.9%)
CIE-LABlab(48.36, 49.88, -30.99)
CIE-LCHlch(48.36, 58.72, 328.15°)
OKLaboklab(57.56% 0.1398 -0.085)
OKLCHoklch(57.56% 0.164 328.7)
XYZxyz(26.6581, 17.0787, 38.9306)
Luminance0.1708 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4FA8 #4FAB52
analogous
#804FAB #AB4FA8 #AB4F7A
triadic
#AB4FA8 #A8AB4F #4FA8AB
tetradic
#AB4FA8 #AB804F #4FAB52 #4F7AAB
square
#AB4FA8 #AB804F #4FAB52 #4F7AAB
split-complementary
#AB4FA8 #7AAB4F #4FAB80
monochromatic
#572856 #813C7F #AB4FA8 #C077BE #D4A1D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB4FA8#FFFFFF#000000##FFFFFF
##AB4FA81.004.764.424.76
#FFFFFF4.761.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#486BAB
Deuteranopia (green-blind)
#6477A5
Tritanopia (blue-blind)
#B05874
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab4fa8;
/* rgb */ color: rgb(171, 79, 168);
/* oklch */ color: oklch(57.6% 0.164 328.7);
Tailwind
colors: {
  custom: {
    50: '#c685c2',
    500: '#ab4fa8',
    950: '#000000',
  },
}
SCSS
$custom: #ab4fa8;
$custom-light: #c685c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4fa8",
  "rgb": {
    "r": 171,
    "g": 79,
    "b": 168
  },
  "hsl": {
    "h": 301.957,
    "s": 36.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57559,
    "c": 0.16364,
    "h": 328.7
  },
  "luminance": 0.17077
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB4FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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