#AB42DC#AB42DC

#AB42DC is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 59.1% C 0.230 H 312.7°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#AB42DC
RGBrgb(171, 66, 220)
HSLhsl(281, 69%, 56%)
HSVhsv(281, 70%, 86%)
CMYKcmyk(22.3%, 70%, 0%, 13.7%)
CIE-LABlab(49.16, 65.74, -59.82)
CIE-LCHlch(49.16, 88.88, 317.70°)
OKLaboklab(59.07% 0.1561 -0.1689)
OKLCHoklch(59.07% 0.23 312.7)
XYZxyz(31.6588, 17.7226, 69.4494)
Luminance0.1772 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB42DC #73DC42
analogous
#5E42DC #AB42DC #DC42C0
triadic
#AB42DC #DCAB42 #42DCAB
tetradic
#AB42DC #DC5E42 #73DC42 #42C0DC
square
#AB42DC #DC5E42 #73DC42 #42C0DC
split-complementary
#AB42DC #C0DC42 #42DC5E
monochromatic
#661A8A #8C23BE #AB42DC #C276E6 #D9A9EF

Accessibility & contrast

On white

4.62
#AB42DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#AB42DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB42DC
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB42DC#FFFFFF#000000##FFFFFF
##AB42DC1.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#3377D9
Tritanopia (blue-blind)
#A6638B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ab42dc;
/* rgb */ color: rgb(171, 66, 220);
/* oklch */ color: oklch(59.1% 0.230 312.7);
Tailwind
colors: {
  custom: {
    50: '#c87fe8',
    500: '#ab42dc',
    950: '#000000',
  },
}
SCSS
$custom: #ab42dc;
$custom-light: #c87fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab42dc",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 280.909,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.59073,
    "c": 0.22994,
    "h": 312.7
  },
  "luminance": 0.17722
}

Semantic roles & 50–950 ramp

primary
#AB42DC
secondary
#B1DD9D
accent
#EC3C74
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB42DC

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

Preview Lab → · Contrast checker → · Palette generator →

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