#AB41DC#AB41DC

#AB41DC is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 59.0% C 0.231 H 312.8°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#AB41DC
RGBrgb(171, 65, 220)
HSLhsl(281, 69%, 56%)
HSVhsv(281, 70%, 86%)
CMYKcmyk(22.3%, 70.5%, 0%, 13.7%)
CIE-LABlab(49.02, 66.14, -60.05)
CIE-LCHlch(49.02, 89.33, 317.77°)
OKLaboklab(58.97% 0.1571 -0.1695)
OKLCHoklch(58.97% 0.231 312.8)
XYZxyz(31.6008, 17.6068, 69.4301)
Luminance0.1761 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB41DC #72DC41
analogous
#5D41DC #AB41DC #DC41C0
triadic
#AB41DC #DCAB41 #41DCAB
tetradic
#AB41DC #DC5D41 #72DC41 #41C0DC
square
#AB41DC #DC5D41 #72DC41 #41C0DC
split-complementary
#AB41DC #C0DC41 #41DC5D
monochromatic
#661989 #8C23BD #AB41DC #C275E6 #D9A8EF

Accessibility & contrast

On white

4.64
#AB41DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#AB41DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB41DC
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB41DC#FFFFFF#000000##FFFFFF
##AB41DC1.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#3277D9
Tritanopia (blue-blind)
#A6628A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ab41dc;
/* rgb */ color: rgb(171, 65, 220);
/* oklch */ color: oklch(59.0% 0.231 312.8);
Tailwind
colors: {
  custom: {
    50: '#c87ee8',
    500: '#ab41dc',
    950: '#000000',
  },
}
SCSS
$custom: #ab41dc;
$custom-light: #c87ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab41dc",
  "rgb": {
    "r": 171,
    "g": 65,
    "b": 220
  },
  "hsl": {
    "h": 281.032,
    "s": 68.889,
    "l": 55.882
  },
  "oklch": {
    "l": 0.58972,
    "c": 0.2311,
    "h": 312.8
  },
  "luminance": 0.17606
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB41DC

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

Preview Lab → · Contrast checker → · Palette generator →

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