#AB41C2#AB41C2

#AB41C2 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.3% C 0.207 H 320.0°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#AB41C2
RGBrgb(171, 65, 194)
HSLhsl(289, 51%, 51%)
HSVhsv(289, 66%, 76%)
CMYKcmyk(11.9%, 66.5%, 0%, 23.9%)
CIE-LABlab(47.41, 61.03, -47.68)
CIE-LCHlch(47.41, 77.45, 322.00°)
OKLaboklab(57.31% 0.1589 -0.1333)
OKLCHoklch(57.31% 0.207 320)
XYZxyz(28.4213, 16.3349, 52.6844)
Luminance0.1633 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB41C2 #58C241
analogous
#6A41C2 #AB41C2 #C24198
triadic
#AB41C2 #C2AB41 #41C2AB
tetradic
#AB41C2 #C26A41 #58C241 #4198C2
square
#AB41C2 #C26A41 #58C241 #4198C2
split-complementary
#AB41C2 #98C241 #41C26A
monochromatic
#5B2167 #843096 #AB41C2 #BF6FD1 #D49EE0

Accessibility & contrast

On white

4.92
#AB41C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#AB41C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB41C2
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB41C2#FFFFFF#000000##FFFFFF
##AB41C21.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1469C6
Deuteranopia (green-blind)
#4C74BF
Tritanopia (blue-blind)
#AC587C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ab41c2;
/* rgb */ color: rgb(171, 65, 194);
/* oklch */ color: oklch(57.3% 0.207 320.0);
Tailwind
colors: {
  custom: {
    50: '#c77ed5',
    500: '#ab41c2',
    950: '#000000',
  },
}
SCSS
$custom: #ab41c2;
$custom-light: #c77ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab41c2",
  "rgb": {
    "r": 171,
    "g": 65,
    "b": 194
  },
  "hsl": {
    "h": 289.302,
    "s": 51.394,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5731,
    "c": 0.20738,
    "h": 320
  },
  "luminance": 0.16334
}

Semantic roles & 50–950 ramp

primary
#AB41C2
secondary
#9DCC93
accent
#DB4D66
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#130A14
muted
#827C83

Preview Lab

Preview with #AB41C2

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

Preview Lab → · Contrast checker → · Palette generator →

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