#AB42CD#AB42CD

#AB42CD is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.1% C 0.216 H 316.7°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#AB42CD
RGBrgb(171, 66, 205)
HSLhsl(285, 58%, 53%)
HSVhsv(285, 68%, 80%)
CMYKcmyk(16.6%, 67.8%, 0%, 19.6%)
CIE-LABlab(48.21, 62.74, -52.75)
CIE-LCHlch(48.21, 81.97, 319.94°)
OKLaboklab(58.1% 0.1573 -0.1481)
OKLCHoklch(58.1% 0.216 316.7)
XYZxyz(29.7606, 16.9633, 59.4524)
Luminance0.1696 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB42CD #64CD42
analogous
#6542CD #AB42CD #CD42A9
triadic
#AB42CD #CDAB42 #42CDAB
tetradic
#AB42CD #CD6542 #64CD42 #42A9CD
square
#AB42CD #CD6542 #64CD42 #42A9CD
split-complementary
#AB42CD #A9CD42 #42CD65
monochromatic
#601F76 #882CA6 #AB42CD #C172DA #D6A3E7

Accessibility & contrast

On white

4.78
#AB42CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#AB42CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB42CD
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB42CD#FFFFFF#000000##FFFFFF
##AB42CD1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD1
Deuteranopia (green-blind)
#4476CA
Tritanopia (blue-blind)
#A95D83
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab42cd;
/* rgb */ color: rgb(171, 66, 205);
/* oklch */ color: oklch(58.1% 0.216 316.7);
Tailwind
colors: {
  custom: {
    50: '#c87edd',
    500: '#ab42cd',
    950: '#000000',
  },
}
SCSS
$custom: #ab42cd;
$custom-light: #c87edd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab42cd",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 285.324,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.58097,
    "c": 0.2161,
    "h": 316.7
  },
  "luminance": 0.16962
}

Semantic roles & 50–950 ramp

primary
#AB42CD
secondary
#A6D397
accent
#E1466C
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AB42CD

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

Preview Lab → · Contrast checker → · Palette generator →

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