#AB2A9C#AB2A9C

#AB2A9C is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.0% C 0.204 H 333.3°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#AB2A9C
RGBrgb(171, 42, 156)
HSLhsl(307, 61%, 42%)
HSVhsv(307, 75%, 67%)
CMYKcmyk(0%, 75.4%, 8.8%, 32.9%)
CIE-LABlab(42.33, 62.94, -33.30)
CIE-LCHlch(42.33, 71.20, 332.11°)
OKLaboklab(52.98% 0.182 -0.0914)
OKLCHoklch(52.98% 0.204 333.3)
XYZxyz(23.6235, 12.7162, 32.6563)
Luminance0.1271 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2A9C #2AAB39
analogous
#7A2AAB #AB2A9C #AB2A5C
triadic
#AB2A9C #9CAB2A #2A9CAB
tetradic
#AB2A9C #AB7A2A #2AAB39 #2A5CAB
square
#AB2A9C #AB7A2A #2AAB39 #2A5CAB
split-complementary
#AB2A9C #5CAB2A #2AAB7A
monochromatic
#491242 #7A1E6F #AB2A9C #D142C0 #DD73D0

Accessibility & contrast

On white

5.93
#AB2A9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#AB2A9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2A9C
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2A9C#FFFFFF#000000##FFFFFF
##AB2A9C1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25589F
Deuteranopia (green-blind)
#566A99
Tritanopia (blue-blind)
#B33761
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ab2a9c;
/* rgb */ color: rgb(171, 42, 156);
/* oklch */ color: oklch(53.0% 0.204 333.3);
Tailwind
colors: {
  custom: {
    50: '#c872b9',
    500: '#ab2a9c',
    950: '#000000',
  },
}
SCSS
$custom: #ab2a9c;
$custom-light: #c872b9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2a9c",
  "rgb": {
    "r": 171,
    "g": 42,
    "b": 156
  },
  "hsl": {
    "h": 306.977,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52984,
    "c": 0.20364,
    "h": 333.3
  },
  "luminance": 0.12714
}

Semantic roles & 50–950 ramp

primary
#AB2A9C
secondary
#6DC477
accent
#E45744
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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