#AB2AA3#AB2AA3

#AB2AA3 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.4% C 0.209 H 330.8°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#AB2AA3
RGBrgb(171, 42, 163)
HSLhsl(304, 61%, 42%)
HSVhsv(304, 75%, 67%)
CMYKcmyk(0%, 75.4%, 4.7%, 32.9%)
CIE-LABlab(42.70, 64.02, -36.92)
CIE-LCHlch(42.70, 73.90, 330.03°)
OKLaboklab(53.37% 0.1822 -0.1018)
OKLCHoklch(53.37% 0.209 330.8)
XYZxyz(24.2334, 12.9601, 35.8685)
Luminance0.1296 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2AA3 #2AAB32
analogous
#732AAB #AB2AA3 #AB2A63
triadic
#AB2AA3 #A3AB2A #2AA3AB
tetradic
#AB2AA3 #AB732A #2AAB32 #2A63AB
square
#AB2AA3 #AB732A #2AAB32 #2A63AB
split-complementary
#AB2AA3 #63AB2A #2AAB73
monochromatic
#491245 #7A1E74 #AB2AA3 #D142C8 #DD73D6

Accessibility & contrast

On white

5.85
#AB2AA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AB2AA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2AA3
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2AA3#FFFFFF#000000##FFFFFF
##AB2AA31.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5AA6
Deuteranopia (green-blind)
#536BA0
Tritanopia (blue-blind)
#B23B65
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2aa3;
/* rgb */ color: rgb(171, 42, 163);
/* oklch */ color: oklch(53.4% 0.209 330.8);
Tailwind
colors: {
  custom: {
    50: '#c872bf',
    500: '#ab2aa3',
    950: '#000000',
  },
}
SCSS
$custom: #ab2aa3;
$custom-light: #c872bf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2aa3",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 163
  },
  "hsl": {
    "h": 303.721,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.5337,
    "c": 0.20876,
    "h": 330.8
  },
  "luminance": 0.12958
}

Semantic roles & 50–950 ramp

primary
#AB2AA3
secondary
#6DC472
accent
#E44E44
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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