#AB42AD#AB42AD

#AB42AD is a mid, vivid purple. Relative luminance 0.156; OKLCH L 56.2% C 0.188 H 327.0°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#AB42AD
RGBrgb(171, 66, 173)
HSLhsl(299, 45%, 47%)
HSVhsv(299, 62%, 68%)
CMYKcmyk(1.2%, 61.8%, 0%, 32.2%)
CIE-LABlab(46.41, 56.75, -37.00)
CIE-LCHlch(46.41, 67.74, 326.90°)
OKLaboklab(56.21% 0.1572 -0.1022)
OKLCHoklch(56.21% 0.188 327)
XYZxyz(26.2852, 15.5732, 41.1485)
Luminance0.1557 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB42AD #44AD42
analogous
#7642AD #AB42AD #AD4279
triadic
#AB42AD #ADAB42 #42ADAB
tetradic
#AB42AD #AD7642 #44AD42 #4279AD
square
#AB42AD #AD7642 #44AD42 #4279AD
split-complementary
#AB42AD #79AD42 #42AD76
monochromatic
#532054 #7F3181 #AB42AD #C367C5 #D593D6

Accessibility & contrast

On white

5.10
#AB42AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#AB42AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB42AD
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB42AD#FFFFFF#000000##FFFFFF
##AB42AD1.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3465B0
Deuteranopia (green-blind)
#5A73AA
Tritanopia (blue-blind)
#B05071
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ab42ad;
/* rgb */ color: rgb(171, 66, 173);
/* oklch */ color: oklch(56.2% 0.188 327.0);
Tailwind
colors: {
  custom: {
    50: '#c77dc6',
    500: '#ab42ad',
    950: '#000000',
  },
}
SCSS
$custom: #ab42ad;
$custom-light: #c77dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab42ad",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 173
  },
  "hsl": {
    "h": 298.879,
    "s": 44.77,
    "l": 46.863
  },
  "oklch": {
    "l": 0.56214,
    "c": 0.18753,
    "h": 327
  },
  "luminance": 0.15571
}

Semantic roles & 50–950 ramp

primary
#AB42AD
secondary
#8AC189
accent
#D45356
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AB42AD

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

Preview Lab → · Contrast checker → · Palette generator →

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