#AB42DD#AB42DD

#AB42DD is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.1% C 0.231 H 312.5°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#AB42DD
RGBrgb(171, 66, 221)
HSLhsl(281, 70%, 56%)
HSVhsv(281, 70%, 87%)
CMYKcmyk(22.6%, 70.1%, 0%, 13.3%)
CIE-LABlab(49.22, 65.95, -60.28)
CIE-LCHlch(49.22, 89.35, 317.57°)
OKLaboklab(59.14% 0.156 -0.1702)
OKLCHoklch(59.14% 0.231 312.5)
XYZxyz(31.7916, 17.7757, 70.1489)
Luminance0.1777 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB42DD #74DD42
analogous
#5E42DD #AB42DD #DD42C2
triadic
#AB42DD #DDAB42 #42DDAB
tetradic
#AB42DD #DD5E42 #74DD42 #42C2DD
square
#AB42DD #DD5E42 #74DD42 #42C2DD
split-complementary
#AB42DD #C2DD42 #42DD5E
monochromatic
#67198C #8D22BF #AB42DD #C276E6 #D9AAF0

Accessibility & contrast

On white

4.61
#AB42DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#AB42DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB42DD
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB42DD#FFFFFF#000000##FFFFFF
##AB42DD1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E1
Deuteranopia (green-blind)
#3277DA
Tritanopia (blue-blind)
#A5638B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ab42dd;
/* rgb */ color: rgb(171, 66, 221);
/* oklch */ color: oklch(59.1% 0.231 312.5);
Tailwind
colors: {
  custom: {
    50: '#c87fe8',
    500: '#ab42dd',
    950: '#000000',
  },
}
SCSS
$custom: #ab42dd;
$custom-light: #c87fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab42dd",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 280.645,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.5914,
    "c": 0.23087,
    "h": 312.5
  },
  "luminance": 0.17775
}

Semantic roles & 50–950 ramp

primary
#AB42DD
secondary
#B2DD9D
accent
#EC3B75
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB42DD

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

Preview Lab → · Contrast checker → · Palette generator →

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