#AB41A2#AB41A2

#AB41A2 is a mid, vivid purple. Relative luminance 0.150; OKLCH L 55.5% C 0.180 H 331.2°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#AB41A2
RGBrgb(171, 65, 162)
HSLhsl(305, 45%, 46%)
HSVhsv(305, 62%, 67%)
CMYKcmyk(0%, 62%, 5.3%, 32.9%)
CIE-LABlab(45.70, 55.28, -31.60)
CIE-LCHlch(45.70, 63.68, 330.25°)
OKLaboklab(55.52% 0.1575 -0.0867)
OKLCHoklch(55.52% 0.18 331.2)
XYZxyz(25.2064, 15.0490, 35.7525)
Luminance0.1505 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB41A2 #41AB4A
analogous
#7F41AB #AB41A2 #AB416D
triadic
#AB41A2 #A2AB41 #41A2AB
tetradic
#AB41A2 #AB7F41 #41AB4A #416DAB
square
#AB41A2 #AB7F41 #41AB4A #416DAB
split-complementary
#AB41A2 #6DAB41 #41AB7F
monochromatic
#521F4E #7F3078 #AB41A2 #C465BC #D591CF

Accessibility & contrast

On white

5.24
#AB41A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#AB41A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB41A2
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB41A2#FFFFFF#000000##FFFFFF
##AB41A21.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B63A5
Deuteranopia (green-blind)
#5E729F
Tritanopia (blue-blind)
#B24B6B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ab41a2;
/* rgb */ color: rgb(171, 65, 162);
/* oklch */ color: oklch(55.5% 0.180 331.2);
Tailwind
colors: {
  custom: {
    50: '#c77dbe',
    500: '#ab41a2',
    950: '#000000',
  },
}
SCSS
$custom: #ab41a2;
$custom-light: #c77dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#ab41a2",
  "rgb": {
    "r": 171,
    "g": 65,
    "b": 162
  },
  "hsl": {
    "h": 305.094,
    "s": 44.915,
    "l": 46.275
  },
  "oklch": {
    "l": 0.55519,
    "c": 0.17973,
    "h": 331.2
  },
  "luminance": 0.15047
}

Semantic roles & 50–950 ramp

primary
#AB41A2
secondary
#87C18C
accent
#D55E53
background
#FCF7FB
surface
#F8EEF6
border
#D1C9D0
text
#130A12
muted
#827C81

Preview Lab

Preview with #AB41A2

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

Preview Lab → · Contrast checker → · Palette generator →

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