#AB2AAF#AB2AAF

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

Color values

HEX#AB2AAF
RGBrgb(171, 42, 175)
HSLhsl(298, 61%, 43%)
HSVhsv(298, 76%, 69%)
CMYKcmyk(2.3%, 76%, 0%, 31.4%)
CIE-LABlab(43.38, 65.96, -42.99)
CIE-LCHlch(43.38, 78.73, 326.91°)
OKLaboklab(54.07% 0.1821 -0.1194)
OKLCHoklch(54.07% 0.218 326.7)
XYZxyz(25.3600, 13.4108, 41.8020)
Luminance0.1341 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2AAF #2EAF2A
analogous
#682AAF #AB2AAF #AF2A71
triadic
#AB2AAF #AFAB2A #2AAFAB
tetradic
#AB2AAF #AF682A #2EAF2A #2A71AF
square
#AB2AAF #AF682A #2EAF2A #2A71AF
split-complementary
#AB2AAF #71AF2A #2AAF68
monochromatic
#4B124C #7B1E7E #AB2AAF #CE44D2 #DB75DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB2AAF#FFFFFF#000000##FFFFFF
##AB2AAF1.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)
#005CB3
Deuteranopia (green-blind)
#4C6CAC
Tritanopia (blue-blind)
#B0416B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab2aaf;
/* rgb */ color: rgb(171, 42, 175);
/* oklch */ color: oklch(54.1% 0.218 326.7);
Tailwind
colors: {
  custom: {
    50: '#c872c7',
    500: '#ab2aaf',
    950: '#000000',
  },
}
SCSS
$custom: #ab2aaf;
$custom-light: #c872c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2aaf",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 175
  },
  "hsl": {
    "h": 298.195,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.54067,
    "c": 0.21781,
    "h": 326.7
  },
  "luminance": 0.13409
}

Semantic roles & 50–950 ramp

primary
#AB2AAF
secondary
#72C66F
accent
#E44348
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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