#AB41CA#AB41CA

#AB41CA is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.8% C 0.215 H 317.6°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AB41CA
RGBrgb(171, 65, 202)
HSLhsl(286, 56%, 52%)
HSVhsv(286, 68%, 79%)
CMYKcmyk(15.3%, 67.8%, 0%, 20.8%)
CIE-LABlab(47.88, 62.57, -51.55)
CIE-LCHlch(47.88, 81.07, 320.51°)
OKLaboklab(57.8% 0.1586 -0.1446)
OKLCHoklch(57.8% 0.215 317.6)
XYZxyz(29.3440, 16.7040, 57.5442)
Luminance0.1670 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB41CA #60CA41
analogous
#6641CA #AB41CA #CA41A5
triadic
#AB41CA #CAAB41 #41CAAB
tetradic
#AB41CA #CA6641 #60CA41 #41A5CA
square
#AB41CA #CA6641 #60CA41 #41A5CA
split-complementary
#AB41CA #A5CA41 #41CA66
monochromatic
#5F2071 #872DA1 #AB41CA #C071D7 #D5A1E5

Accessibility & contrast

On white

4.84
#AB41CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#AB41CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB41CA
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB41CA#FFFFFF#000000##FFFFFF
##AB41CA1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCE
Deuteranopia (green-blind)
#4675C7
Tritanopia (blue-blind)
#AA5B81
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab41ca;
/* rgb */ color: rgb(171, 65, 202);
/* oklch */ color: oklch(57.8% 0.215 317.6);
Tailwind
colors: {
  custom: {
    50: '#c87edb',
    500: '#ab41ca',
    950: '#000000',
  },
}
SCSS
$custom: #ab41ca;
$custom-light: #c87edb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab41ca",
  "rgb": {
    "r": 171,
    "g": 65,
    "b": 202
  },
  "hsl": {
    "h": 286.423,
    "s": 56.379,
    "l": 52.353
  },
  "oklch": {
    "l": 0.57803,
    "c": 0.21462,
    "h": 317.6
  },
  "luminance": 0.16703
}

Semantic roles & 50–950 ramp

primary
#AB41CA
secondary
#A3D196
accent
#E0486A
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AB41CA

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

Preview Lab → · Contrast checker → · Palette generator →

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