#AB22AF#AB22AF

#AB22AF is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.5% C 0.225 H 326.9°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#AB22AF
RGBrgb(171, 34, 175)
HSLhsl(298, 67%, 41%)
HSVhsv(298, 81%, 69%)
CMYKcmyk(2.3%, 80.6%, 0%, 31.4%)
CIE-LABlab(42.61, 68.17, -44.21)
CIE-LCHlch(42.61, 81.25, 327.04°)
OKLaboklab(53.52% 0.1883 -0.123)
OKLCHoklch(53.52% 0.225 326.9)
XYZxyz(25.1041, 12.8989, 41.7167)
Luminance0.1290 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB22AF #26AF22
analogous
#6422AF #AB22AF #AF226C
triadic
#AB22AF #AFAB22 #22AFAB
tetradic
#AB22AF #AF6422 #26AF22 #226CAF
square
#AB22AF #AF6422 #26AF22 #226CAF
split-complementary
#AB22AF #6CAF22 #22AF64
monochromatic
#470E49 #79187C #AB22AF #D336D8 #DF69E2

Accessibility & contrast

On white

5.87
#AB22AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#AB22AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB22AF
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB22AF#FFFFFF#000000##FFFFFF
##AB22AF1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB3
Deuteranopia (green-blind)
#486AAC
Tritanopia (blue-blind)
#B03D6A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab22af;
/* rgb */ color: rgb(171, 34, 175);
/* oklch */ color: oklch(53.5% 0.225 326.9);
Tailwind
colors: {
  custom: {
    50: '#c870c7',
    500: '#ab22af',
    950: '#000000',
  },
}
SCSS
$custom: #ab22af;
$custom-light: #c870c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab22af",
  "rgb": {
    "r": 171,
    "g": 34,
    "b": 175
  },
  "hsl": {
    "h": 298.298,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53524,
    "c": 0.22492,
    "h": 326.9
  },
  "luminance": 0.12897
}

Semantic roles & 50–950 ramp

primary
#AB22AF
secondary
#68C865
accent
#EA3D42
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB22AF

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

Preview Lab → · Contrast checker → · Palette generator →

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