#AB2FA1#AB2FA1

#AB2FA1 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.7% C 0.202 H 331.5°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#AB2FA1
RGBrgb(171, 47, 161)
HSLhsl(305, 57%, 43%)
HSVhsv(305, 73%, 67%)
CMYKcmyk(0%, 72.5%, 5.8%, 32.9%)
CIE-LABlab(43.16, 62.09, -34.99)
CIE-LCHlch(43.16, 71.27, 330.59°)
OKLaboklab(53.66% 0.1775 -0.0963)
OKLCHoklch(53.66% 0.202 331.5)
XYZxyz(24.2441, 13.2661, 34.9950)
Luminance0.1326 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2FA1 #2FAB39
analogous
#772FAB #AB2FA1 #AB2F63
triadic
#AB2FA1 #A1AB2F #2FA1AB
tetradic
#AB2FA1 #AB772F #2FAB39 #2F63AB
square
#AB2FA1 #AB772F #2FAB39 #2F63AB
split-complementary
#AB2FA1 #63AB2F #2FAB77
monochromatic
#4B1547 #7B2274 #AB2FA1 #CD4AC3 #DA7AD3

Accessibility & contrast

On white

5.75
#AB2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#AB2FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2FA1
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2FA1#FFFFFF#000000##FFFFFF
##AB2FA11.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255BA4
Deuteranopia (green-blind)
#566C9E
Tritanopia (blue-blind)
#B23D65
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2fa1;
/* rgb */ color: rgb(171, 47, 161);
/* oklch */ color: oklch(53.7% 0.202 331.5);
Tailwind
colors: {
  custom: {
    50: '#c874bd',
    500: '#ab2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #ab2fa1;
$custom-light: #c874bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2fa1",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 304.839,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53664,
    "c": 0.20196,
    "h": 331.5
  },
  "luminance": 0.13264
}

Semantic roles & 50–950 ramp

primary
#AB2FA1
secondary
#73C379
accent
#E05448
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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