#AB2FA4#AB2FA4

#AB2FA4 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 53.8% C 0.204 H 330.4°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#AB2FA4
RGBrgb(171, 47, 164)
HSLhsl(303, 57%, 43%)
HSVhsv(303, 73%, 67%)
CMYKcmyk(0%, 72.5%, 4.1%, 32.9%)
CIE-LABlab(43.32, 62.57, -36.54)
CIE-LCHlch(43.32, 72.46, 329.72°)
OKLaboklab(53.83% 0.1776 -0.1008)
OKLCHoklch(53.83% 0.204 330.4)
XYZxyz(24.5119, 13.3732, 36.4050)
Luminance0.1337 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2FA4 #2FAB36
analogous
#742FAB #AB2FA4 #AB2F66
triadic
#AB2FA4 #A4AB2F #2FA4AB
tetradic
#AB2FA4 #AB742F #2FAB36 #2F66AB
square
#AB2FA4 #AB742F #2FAB36 #2F66AB
split-complementary
#AB2FA4 #66AB2F #2FAB74
monochromatic
#4B1548 #7B2276 #AB2FA4 #CD4AC6 #DA7AD5

Accessibility & contrast

On white

5.72
#AB2FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#AB2FA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2FA4
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2FA4#FFFFFF#000000##FFFFFF
##AB2FA41.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225BA7
Deuteranopia (green-blind)
#546CA1
Tritanopia (blue-blind)
#B23F67
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2fa4;
/* rgb */ color: rgb(171, 47, 164);
/* oklch */ color: oklch(53.8% 0.204 330.4);
Tailwind
colors: {
  custom: {
    50: '#c874bf',
    500: '#ab2fa4',
    950: '#000000',
  },
}
SCSS
$custom: #ab2fa4;
$custom-light: #c874bf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2fa4",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 303.387,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.5383,
    "c": 0.20422,
    "h": 330.4
  },
  "luminance": 0.13371
}

Semantic roles & 50–950 ramp

primary
#AB2FA4
secondary
#73C378
accent
#E05048
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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