#AB4FA2#AB4FA2

#AB4FA2 is a mid, vivid purple. Relative luminance 0.169; OKLCH L 57.3% C 0.158 H 331.3°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#AB4FA2
RGBrgb(171, 79, 162)
HSLhsl(306, 37%, 49%)
HSVhsv(306, 54%, 67%)
CMYKcmyk(0%, 53.8%, 5.3%, 32.9%)
CIE-LABlab(48.08, 48.82, -27.88)
CIE-LCHlch(48.08, 56.22, 330.27°)
OKLaboklab(57.27% 0.1389 -0.0761)
OKLCHoklch(57.27% 0.158 331.3)
XYZxyz(26.1120, 16.8602, 36.0544)
Luminance0.1686 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4FA2 #4FAB58
analogous
#864FAB #AB4FA2 #AB4F74
triadic
#AB4FA2 #A2AB4F #4FA2AB
tetradic
#AB4FA2 #AB864F #4FAB58 #4F74AB
square
#AB4FA2 #AB864F #4FAB58 #4F74AB
split-complementary
#AB4FA2 #74AB4F #4FAB86
monochromatic
#572853 #813C7A #AB4FA2 #C077B9 #D4A1CF

Accessibility & contrast

On white

4.80
#AB4FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#AB4FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4FA2
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4FA2#FFFFFF#000000##FFFFFF
##AB4FA21.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B6AA5
Deuteranopia (green-blind)
#67779F
Tritanopia (blue-blind)
#B15671
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab4fa2;
/* rgb */ color: rgb(171, 79, 162);
/* oklch */ color: oklch(57.3% 0.158 331.3);
Tailwind
colors: {
  custom: {
    50: '#c685be',
    500: '#ab4fa2',
    950: '#000000',
  },
}
SCSS
$custom: #ab4fa2;
$custom-light: #c685be;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4fa2",
  "rgb": {
    "r": 171,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 305.87,
    "s": 36.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57266,
    "c": 0.15836,
    "h": 331.3
  },
  "luminance": 0.16859
}

Semantic roles & 50–950 ramp

primary
#AB4FA2
secondary
#95C199
accent
#CD665B
background
#FCF8FB
surface
#F8EFF6
border
#D1CAD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AB4FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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