#AB2FA7#AB2FA7

#AB2FA7 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.0% C 0.207 H 329.4°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#AB2FA7
RGBrgb(171, 47, 167)
HSLhsl(302, 57%, 43%)
HSVhsv(302, 73%, 67%)
CMYKcmyk(0%, 72.5%, 2.3%, 32.9%)
CIE-LABlab(43.48, 63.06, -38.07)
CIE-LCHlch(43.48, 73.66, 328.88°)
OKLaboklab(54% 0.1777 -0.1052)
OKLCHoklch(54% 0.207 329.4)
XYZxyz(24.7860, 13.4828, 37.8487)
Luminance0.1348 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2FA7 #2FAB33
analogous
#712FAB #AB2FA7 #AB2F69
triadic
#AB2FA7 #A7AB2F #2FA7AB
tetradic
#AB2FA7 #AB712F #2FAB33 #2F69AB
square
#AB2FA7 #AB712F #2FAB33 #2F69AB
split-complementary
#AB2FA7 #69AB2F #2FAB71
monochromatic
#4B1549 #7B2278 #AB2FA7 #CD4AC9 #DA7AD7

Accessibility & contrast

On white

5.68
#AB2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#AB2FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2FA7
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2FA7#FFFFFF#000000##FFFFFF
##AB2FA71.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5CAA
Deuteranopia (green-blind)
#536DA4
Tritanopia (blue-blind)
#B14068
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab2fa7;
/* rgb */ color: rgb(171, 47, 167);
/* oklch */ color: oklch(54.0% 0.207 329.4);
Tailwind
colors: {
  custom: {
    50: '#c874c1',
    500: '#ab2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #ab2fa7;
$custom-light: #c874c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2fa7",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 301.935,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53998,
    "c": 0.20651,
    "h": 329.4
  },
  "luminance": 0.13481
}

Semantic roles & 50–950 ramp

primary
#AB2FA7
secondary
#73C376
accent
#E04D48
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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