#AB2D9C#AB2D9C

#AB2D9C is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.2% C 0.200 H 333.4°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#AB2D9C
RGBrgb(171, 45, 156)
HSLhsl(307, 58%, 42%)
HSVhsv(307, 74%, 67%)
CMYKcmyk(0%, 73.7%, 8.8%, 32.9%)
CIE-LABlab(42.67, 61.98, -32.77)
CIE-LCHlch(42.67, 70.11, 332.13°)
OKLaboklab(53.23% 0.1792 -0.0899)
OKLCHoklch(53.23% 0.2 333.4)
XYZxyz(23.7339, 12.9370, 32.6931)
Luminance0.1293 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2D9C #2DAB3C
analogous
#7B2DAB #AB2D9C #AB2D5D
triadic
#AB2D9C #9CAB2D #2D9CAB
tetradic
#AB2D9C #AB7B2D #2DAB3C #2D5DAB
square
#AB2D9C #AB7B2D #2DAB3C #2D5DAB
split-complementary
#AB2D9C #5DAB2D #2DAB7B
monochromatic
#4A1444 #7B2070 #AB2D9C #CE47BE #DB77CF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB2D9C#FFFFFF#000000##FFFFFF
##AB2D9C1.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)
#28599F
Deuteranopia (green-blind)
#576B99
Tritanopia (blue-blind)
#B33962
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ab2d9c;
/* rgb */ color: rgb(171, 45, 156);
/* oklch */ color: oklch(53.2% 0.200 333.4);
Tailwind
colors: {
  custom: {
    50: '#c873b9',
    500: '#ab2d9c',
    950: '#000000',
  },
}
SCSS
$custom: #ab2d9c;
$custom-light: #c873b9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2d9c",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 156
  },
  "hsl": {
    "h": 307.143,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.53225,
    "c": 0.20046,
    "h": 333.4
  },
  "luminance": 0.12935
}

Semantic roles & 50–950 ramp

primary
#AB2D9C
secondary
#71C37A
accent
#E25946
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AB2D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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