#AB42AE#AB42AE

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

Color values

HEX#AB42AE
RGBrgb(171, 66, 174)
HSLhsl(298, 45%, 47%)
HSVhsv(298, 62%, 68%)
CMYKcmyk(1.7%, 62.1%, 0%, 31.8%)
CIE-LABlab(46.46, 56.93, -37.50)
CIE-LCHlch(46.46, 68.17, 326.62°)
OKLaboklab(56.27% 0.1573 -0.1037)
OKLCHoklch(56.27% 0.188 326.6)
XYZxyz(26.3823, 15.6120, 41.6600)
Luminance0.1561 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB42AE #45AE42
analogous
#7542AE #AB42AE #AE427B
triadic
#AB42AE #AEAB42 #42AEAB
tetradic
#AB42AE #AE7542 #45AE42 #427BAE
square
#AB42AE #AE7542 #45AE42 #427BAE
split-complementary
#AB42AE #7BAE42 #42AE75
monochromatic
#542055 #7F3182 #AB42AE #C368C6 #D594D6

Accessibility & contrast

On white

5.09
#AB42AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#AB42AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB42AE
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB42AE#FFFFFF#000000##FFFFFF
##AB42AE1.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3365B1
Deuteranopia (green-blind)
#5973AB
Tritanopia (blue-blind)
#B05172
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ab42ae;
/* rgb */ color: rgb(171, 66, 174);
/* oklch */ color: oklch(56.3% 0.188 326.6);
Tailwind
colors: {
  custom: {
    50: '#c77dc6',
    500: '#ab42ae',
    950: '#000000',
  },
}
SCSS
$custom: #ab42ae;
$custom-light: #c77dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab42ae",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 298.333,
    "s": 45,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56268,
    "c": 0.1884,
    "h": 326.6
  },
  "luminance": 0.1561
}

Semantic roles & 50–950 ramp

primary
#AB42AE
secondary
#8BC28A
accent
#D55357
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AB42AE

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

Preview Lab → · Contrast checker → · Palette generator →

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