#AB42AA#AB42AA

#AB42AA is a mid, vivid purple. Relative luminance 0.155; OKLCH L 56.1% C 0.185 H 328.1°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#AB42AA
RGBrgb(171, 66, 170)
HSLhsl(301, 44%, 46%)
HSVhsv(301, 61%, 67%)
CMYKcmyk(0%, 61.4%, 0.6%, 32.9%)
CIE-LABlab(46.26, 56.22, -35.47)
CIE-LCHlch(46.26, 66.48, 327.76°)
OKLaboklab(56.05% 0.157 -0.0978)
OKLCHoklch(56.05% 0.185 328.1)
XYZxyz(25.9982, 15.4583, 39.6368)
Luminance0.1546 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB42AA #42AB43
analogous
#7842AB #AB42AA #AB4276
triadic
#AB42AA #AAAB42 #42AAAB
tetradic
#AB42AA #AB7842 #42AB43 #4276AB
square
#AB42AA #AB7842 #42AB43 #4276AB
split-complementary
#AB42AA #76AB42 #42AB78
monochromatic
#532052 #7F317E #AB42AA #C466C3 #D592D4

Accessibility & contrast

On white

5.13
#AB42AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#AB42AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB42AA
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB42AA#FFFFFF#000000##FFFFFF
##AB42AA1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3665AD
Deuteranopia (green-blind)
#5B72A7
Tritanopia (blue-blind)
#B04F70
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ab42aa;
/* rgb */ color: rgb(171, 66, 170);
/* oklch */ color: oklch(56.1% 0.185 328.1);
Tailwind
colors: {
  custom: {
    50: '#c77dc3',
    500: '#ab42aa',
    950: '#000000',
  },
}
SCSS
$custom: #ab42aa;
$custom-light: #c77dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab42aa",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 300.571,
    "s": 44.304,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56052,
    "c": 0.18498,
    "h": 328.1
  },
  "luminance": 0.15457
}

Semantic roles & 50–950 ramp

primary
#AB42AA
secondary
#88C089
accent
#D45554
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A12
muted
#827C81

Preview Lab

Preview with #AB42AA

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

Preview Lab → · Contrast checker → · Palette generator →

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