#AB2FA6#AB2FA6

#AB2FA6 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 53.9% C 0.206 H 329.7°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#AB2FA6
RGBrgb(171, 47, 166)
HSLhsl(302, 57%, 43%)
HSVhsv(302, 73%, 67%)
CMYKcmyk(0%, 72.5%, 2.9%, 32.9%)
CIE-LABlab(43.43, 62.89, -37.56)
CIE-LCHlch(43.43, 73.25, 329.15°)
OKLaboklab(53.94% 0.1777 -0.1037)
OKLCHoklch(53.94% 0.206 329.7)
XYZxyz(24.6939, 13.4460, 37.3637)
Luminance0.1344 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2FA6 #2FAB34
analogous
#722FAB #AB2FA6 #AB2F68
triadic
#AB2FA6 #A6AB2F #2FA6AB
tetradic
#AB2FA6 #AB722F #2FAB34 #2F68AB
square
#AB2FA6 #AB722F #2FAB34 #2F68AB
split-complementary
#AB2FA6 #68AB2F #2FAB72
monochromatic
#4B1549 #7B2277 #AB2FA6 #CD4AC8 #DA7AD7

Accessibility & contrast

On white

5.69
#AB2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#AB2FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2FA6
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2FA6#FFFFFF#000000##FFFFFF
##AB2FA61.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab2fa6;
/* rgb */ color: rgb(171, 47, 166);
/* oklch */ color: oklch(53.9% 0.206 329.7);
Tailwind
colors: {
  custom: {
    50: '#c874c1',
    500: '#ab2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #ab2fa6;
$custom-light: #c874c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2fa6",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 302.419,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53942,
    "c": 0.20575,
    "h": 329.7
  },
  "luminance": 0.13444
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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