#AB41C7#AB41C7

#AB41C7 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.6% C 0.212 H 318.5°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AB41C7
RGBrgb(171, 65, 199)
HSLhsl(287, 54%, 52%)
HSVhsv(287, 67%, 78%)
CMYKcmyk(14.1%, 67.3%, 0%, 22%)
CIE-LABlab(47.70, 61.99, -50.11)
CIE-LCHlch(47.70, 79.71, 321.05°)
OKLaboklab(57.62% 0.1587 -0.1404)
OKLCHoklch(57.62% 0.212 318.5)
XYZxyz(28.9923, 16.5633, 55.6916)
Luminance0.1656 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB41C7 #5DC741
analogous
#6841C7 #AB41C7 #C741A0
triadic
#AB41C7 #C7AB41 #41C7AB
tetradic
#AB41C7 #C76841 #5DC741 #41A0C7
square
#AB41C7 #C76841 #5DC741 #41A0C7
split-complementary
#AB41C7 #A0C741 #41C768
monochromatic
#5D206D #862E9D #AB41C7 #C070D5 #D5A0E3

Accessibility & contrast

On white

4.87
#AB41C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#AB41C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB41C7
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB41C7#FFFFFF#000000##FFFFFF
##AB41C71.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#026ACB
Deuteranopia (green-blind)
#4875C4
Tritanopia (blue-blind)
#AB5A7F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ab41c7;
/* rgb */ color: rgb(171, 65, 199);
/* oklch */ color: oklch(57.6% 0.212 318.5);
Tailwind
colors: {
  custom: {
    50: '#c87ed9',
    500: '#ab41c7',
    950: '#000000',
  },
}
SCSS
$custom: #ab41c7;
$custom-light: #c87ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab41c7",
  "rgb": {
    "r": 171,
    "g": 65,
    "b": 199
  },
  "hsl": {
    "h": 287.463,
    "s": 54.472,
    "l": 51.765
  },
  "oklch": {
    "l": 0.57616,
    "c": 0.21189,
    "h": 318.5
  },
  "luminance": 0.16562
}

Semantic roles & 50–950 ramp

primary
#AB41C7
secondary
#A1CF95
accent
#DE4A69
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#130A15
muted
#827C83

Preview Lab

Preview with #AB41C7

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

Preview Lab → · Contrast checker → · Palette generator →

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