#AB2AA2#AB2AA2

#AB2AA2 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.3% C 0.208 H 331.2°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#AB2AA2
RGBrgb(171, 42, 162)
HSLhsl(304, 61%, 42%)
HSVhsv(304, 75%, 67%)
CMYKcmyk(0%, 75.4%, 5.3%, 32.9%)
CIE-LABlab(42.65, 63.86, -36.40)
CIE-LCHlch(42.65, 73.51, 330.32°)
OKLaboklab(53.31% 0.1822 -0.1003)
OKLCHoklch(53.31% 0.208 331.2)
XYZxyz(24.1441, 12.9244, 35.3985)
Luminance0.1292 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2AA2 #2AAB33
analogous
#742AAB #AB2AA2 #AB2A62
triadic
#AB2AA2 #A2AB2A #2AA2AB
tetradic
#AB2AA2 #AB742A #2AAB33 #2A62AB
square
#AB2AA2 #AB742A #2AAB33 #2A62AB
split-complementary
#AB2AA2 #62AB2A #2AAB74
monochromatic
#491245 #7A1E73 #AB2AA2 #D142C7 #DD73D5

Accessibility & contrast

On white

5.86
#AB2AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2AA2
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2AA2#FFFFFF#000000##FFFFFF
##AB2AA21.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D59A5
Deuteranopia (green-blind)
#536B9F
Tritanopia (blue-blind)
#B23A64
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2aa2;
/* rgb */ color: rgb(171, 42, 162);
/* oklch */ color: oklch(53.3% 0.208 331.2);
Tailwind
colors: {
  custom: {
    50: '#c872be',
    500: '#ab2aa2',
    950: '#000000',
  },
}
SCSS
$custom: #ab2aa2;
$custom-light: #c872be;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2aa2",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 304.186,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.53314,
    "c": 0.20801,
    "h": 331.2
  },
  "luminance": 0.12922
}

Semantic roles & 50–950 ramp

primary
#AB2AA2
secondary
#6DC473
accent
#E44F44
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB2AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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