#AB42BD#AB42BD

#AB42BD is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.1% C 0.202 H 321.5°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#AB42BD
RGBrgb(171, 66, 189)
HSLhsl(291, 48%, 50%)
HSVhsv(291, 65%, 74%)
CMYKcmyk(9.5%, 65.1%, 0%, 25.9%)
CIE-LABlab(47.27, 59.67, -45.00)
CIE-LCHlch(47.27, 74.73, 322.98°)
OKLaboklab(57.12% 0.1578 -0.1255)
OKLCHoklch(57.12% 0.202 321.5)
XYZxyz(27.9271, 16.2299, 49.7959)
Luminance0.1623 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB42BD #54BD42
analogous
#6E42BD #AB42BD #BD4291
triadic
#AB42BD #BDAB42 #42BDAB
tetradic
#AB42BD #BD6E42 #54BD42 #4291BD
square
#AB42BD #BD6E42 #54BD42 #4291BD
split-complementary
#AB42BD #91BD42 #42BD6E
monochromatic
#592262 #823290 #AB42BD #BF6FCD #D39DDD

Accessibility & contrast

On white

4.95
#AB42BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#AB42BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB42BD
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB42BD#FFFFFF#000000##FFFFFF
##AB42BD1.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2169C1
Deuteranopia (green-blind)
#5074BA
Tritanopia (blue-blind)
#AD567A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ab42bd;
/* rgb */ color: rgb(171, 66, 189);
/* oklch */ color: oklch(57.1% 0.202 321.5);
Tailwind
colors: {
  custom: {
    50: '#c77ed1',
    500: '#ab42bd',
    950: '#000000',
  },
}
SCSS
$custom: #ab42bd;
$custom-light: #c77ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab42bd",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 291.22,
    "s": 48.235,
    "l": 50
  },
  "oklch": {
    "l": 0.5712,
    "c": 0.20159,
    "h": 321.5
  },
  "luminance": 0.16228
}

Semantic roles & 50–950 ramp

primary
#AB42BD
secondary
#9AC992
accent
#D85064
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#130A14
muted
#827C82

Preview Lab

Preview with #AB42BD

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

Preview Lab → · Contrast checker → · Palette generator →

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