#AB2FA2#AB2FA2

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

Color values

HEX#AB2FA2
RGBrgb(171, 47, 162)
HSLhsl(304, 57%, 43%)
HSVhsv(304, 73%, 67%)
CMYKcmyk(0%, 72.5%, 5.3%, 32.9%)
CIE-LABlab(43.21, 62.25, -35.51)
CIE-LCHlch(43.21, 71.67, 330.30°)
OKLaboklab(53.72% 0.1776 -0.0978)
OKLCHoklch(53.72% 0.203 331.2)
XYZxyz(24.3327, 13.3015, 35.4613)
Luminance0.1330 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2FA2 #2FAB38
analogous
#762FAB #AB2FA2 #AB2F64
triadic
#AB2FA2 #A2AB2F #2FA2AB
tetradic
#AB2FA2 #AB762F #2FAB38 #2F64AB
square
#AB2FA2 #AB762F #2FAB38 #2F64AB
split-complementary
#AB2FA2 #64AB2F #2FAB76
monochromatic
#4B1547 #7B2275 #AB2FA2 #CD4AC4 #DA7AD3

Accessibility & contrast

On white

5.74
#AB2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#AB2FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2FA2
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2FA2#FFFFFF#000000##FFFFFF
##AB2FA21.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245BA5
Deuteranopia (green-blind)
#556C9F
Tritanopia (blue-blind)
#B23E65
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2fa2;
/* rgb */ color: rgb(171, 47, 162);
/* oklch */ color: oklch(53.7% 0.203 331.2);
Tailwind
colors: {
  custom: {
    50: '#c874be',
    500: '#ab2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #ab2fa2;
$custom-light: #c874be;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2fa2",
  "rgb": {
    "r": 171,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 304.355,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53719,
    "c": 0.20271,
    "h": 331.2
  },
  "luminance": 0.133
}

Semantic roles & 50–950 ramp

primary
#AB2FA2
secondary
#73C379
accent
#E05348
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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