#AB2FA5#AB2FA5

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

Color values

HEX#AB2FA5
RGBrgb(171, 47, 165)
HSLhsl(303, 57%, 43%)
HSVhsv(303, 73%, 67%)
CMYKcmyk(0%, 72.5%, 3.5%, 32.9%)
CIE-LABlab(43.37, 62.73, -37.05)
CIE-LCHlch(43.37, 72.85, 329.43°)
OKLaboklab(53.89% 0.1777 -0.1022)
OKLCHoklch(53.89% 0.205 330.1)
XYZxyz(24.6025, 13.4095, 36.8825)
Luminance0.1341 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2FA5 #2FAB35
analogous
#732FAB #AB2FA5 #AB2F67
triadic
#AB2FA5 #A5AB2F #2FA5AB
tetradic
#AB2FA5 #AB732F #2FAB35 #2F67AB
square
#AB2FA5 #AB732F #2FAB35 #2F67AB
split-complementary
#AB2FA5 #67AB2F #2FAB73
monochromatic
#4B1548 #7B2277 #AB2FA5 #CD4AC7 #DA7AD6

Accessibility & contrast

On white

5.70
#AB2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#AB2FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2FA5
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2FA5#FFFFFF#000000##FFFFFF
##AB2FA51.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215CA8
Deuteranopia (green-blind)
#546CA2
Tritanopia (blue-blind)
#B13F67
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2fa5;
/* rgb */ color: rgb(171, 47, 165);
/* oklch */ color: oklch(53.9% 0.205 330.1);
Tailwind
colors: {
  custom: {
    50: '#c874c0',
    500: '#ab2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #ab2fa5;
$custom-light: #c874c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2fa5",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 302.903,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53886,
    "c": 0.20498,
    "h": 330.1
  },
  "luminance": 0.13408
}

Semantic roles & 50–950 ramp

primary
#AB2FA5
secondary
#73C377
accent
#E04F48
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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