#AB41C8#AB41C8

#AB41C8 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.7% C 0.213 H 318.2°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AB41C8
RGBrgb(171, 65, 200)
HSLhsl(287, 55%, 52%)
HSVhsv(287, 68%, 78%)
CMYKcmyk(14.5%, 67.5%, 0%, 21.6%)
CIE-LABlab(47.76, 62.18, -50.59)
CIE-LCHlch(47.76, 80.16, 320.87°)
OKLaboklab(57.68% 0.1587 -0.1418)
OKLCHoklch(57.68% 0.213 318.2)
XYZxyz(29.1088, 16.6099, 56.3051)
Luminance0.1661 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB41C8 #5EC841
analogous
#6841C8 #AB41C8 #C841A2
triadic
#AB41C8 #C8AB41 #41C8AB
tetradic
#AB41C8 #C86841 #5EC841 #41A2C8
square
#AB41C8 #C86841 #5EC841 #41A2C8
split-complementary
#AB41C8 #A2C841 #41C868
monochromatic
#5E206F #862E9E #AB41C8 #C070D6 #D5A0E3

Accessibility & contrast

On white

4.86
#AB41C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#AB41C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB41C8
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB41C8#FFFFFF#000000##FFFFFF
##AB41C81.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACC
Deuteranopia (green-blind)
#4775C5
Tritanopia (blue-blind)
#AA5A7F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ab41c8;
/* rgb */ color: rgb(171, 65, 200);
/* oklch */ color: oklch(57.7% 0.213 318.2);
Tailwind
colors: {
  custom: {
    50: '#c87ed9',
    500: '#ab41c8',
    950: '#000000',
  },
}
SCSS
$custom: #ab41c8;
$custom-light: #c87ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab41c8",
  "rgb": {
    "r": 171,
    "g": 65,
    "b": 200
  },
  "hsl": {
    "h": 287.111,
    "s": 55.102,
    "l": 51.961
  },
  "oklch": {
    "l": 0.57678,
    "c": 0.2128,
    "h": 318.2
  },
  "luminance": 0.16609
}

Semantic roles & 50–950 ramp

primary
#AB41C8
secondary
#A2D095
accent
#DE4969
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AB41C8

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

Preview Lab → · Contrast checker → · Palette generator →

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