#AB42D2#AB42D2

#AB42D2 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.4% C 0.221 H 315.3°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#AB42D2
RGBrgb(171, 66, 210)
HSLhsl(284, 62%, 54%)
HSVhsv(284, 69%, 82%)
CMYKcmyk(18.6%, 68.6%, 0%, 17.6%)
CIE-LABlab(48.52, 63.73, -55.13)
CIE-LCHlch(48.52, 84.27, 319.14°)
OKLaboklab(58.42% 0.157 -0.1551)
OKLCHoklch(58.42% 0.221 315.3)
XYZxyz(30.3738, 17.2086, 62.6819)
Luminance0.1721 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB42D2 #69D242
analogous
#6342D2 #AB42D2 #D242B1
triadic
#AB42D2 #D2AB42 #42D2AB
tetradic
#AB42D2 #D26342 #69D242 #42B1D2
square
#AB42D2 #D26342 #69D242 #42B1D2
split-complementary
#AB42D2 #B1D242 #42D263
monochromatic
#621E7C #8A29AD #AB42D2 #C173DE #D7A5EA

Accessibility & contrast

On white

4.73
#AB42D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#AB42D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB42D2
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB42D2#FFFFFF#000000##FFFFFF
##AB42D21.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD6
Deuteranopia (green-blind)
#3F76CF
Tritanopia (blue-blind)
#A85F85
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab42d2;
/* rgb */ color: rgb(171, 66, 210);
/* oklch */ color: oklch(58.4% 0.221 315.3);
Tailwind
colors: {
  custom: {
    50: '#c87fe0',
    500: '#ab42d2',
    950: '#000000',
  },
}
SCSS
$custom: #ab42d2;
$custom-light: #c87fe0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab42d2",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 283.75,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.58416,
    "c": 0.2207,
    "h": 315.3
  },
  "luminance": 0.17207
}

Semantic roles & 50–950 ramp

primary
#AB42D2
secondary
#AAD799
accent
#E5436F
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AB42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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