#AB41AC#AB41AC

#AB41AC is a mid, vivid purple. Relative luminance 0.154; OKLCH L 56.0% C 0.188 H 327.4°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#AB41AC
RGBrgb(171, 65, 172)
HSLhsl(299, 45%, 46%)
HSVhsv(299, 62%, 67%)
CMYKcmyk(0.6%, 62.2%, 0%, 32.5%)
CIE-LABlab(46.20, 57.00, -36.73)
CIE-LCHlch(46.20, 67.81, 327.20°)
OKLaboklab(56.05% 0.1584 -0.1015)
OKLCHoklch(56.05% 0.188 327.4)
XYZxyz(26.1309, 15.4188, 40.6215)
Luminance0.1542 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB41AC #42AC41
analogous
#7641AC #AB41AC #AC4178
triadic
#AB41AC #ACAB41 #41ACAB
tetradic
#AB41AC #AC7641 #42AC41 #4178AC
square
#AB41AC #AC7641 #42AC41 #4178AC
split-complementary
#AB41AC #78AC41 #41AC76
monochromatic
#531F53 #7F3080 #AB41AC #C465C5 #D592D6

Accessibility & contrast

On white

5.14
#AB41AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#AB41AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB41AC
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB41AC#FFFFFF#000000##FFFFFF
##AB41AC1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3365AF
Deuteranopia (green-blind)
#5972A9
Tritanopia (blue-blind)
#B04F71
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ab41ac;
/* rgb */ color: rgb(171, 65, 172);
/* oklch */ color: oklch(56.0% 0.188 327.4);
Tailwind
colors: {
  custom: {
    50: '#c77dc5',
    500: '#ab41ac',
    950: '#000000',
  },
}
SCSS
$custom: #ab41ac;
$custom-light: #c77dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab41ac",
  "rgb": {
    "r": 171,
    "g": 65,
    "b": 172
  },
  "hsl": {
    "h": 299.439,
    "s": 45.148,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56047,
    "c": 0.18807,
    "h": 327.4
  },
  "luminance": 0.15417
}

Semantic roles & 50–950 ramp

primary
#AB41AC
secondary
#88C188
accent
#D55354
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AB41AC

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

Preview Lab → · Contrast checker → · Palette generator →

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