#AB41A5#AB41A5

#AB41A5 is a mid, vivid purple. Relative luminance 0.152; OKLCH L 55.7% C 0.182 H 330.0°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#AB41A5
RGBrgb(171, 65, 165)
HSLhsl(303, 45%, 46%)
HSVhsv(303, 62%, 67%)
CMYKcmyk(0%, 62%, 3.5%, 32.9%)
CIE-LABlab(45.85, 55.79, -33.15)
CIE-LCHlch(45.85, 64.90, 329.28°)
OKLaboklab(55.67% 0.1578 -0.0911)
OKLCHoklch(55.67% 0.182 330)
XYZxyz(25.4762, 15.1569, 37.1738)
Luminance0.1515 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB41A5 #41AB47
analogous
#7C41AB #AB41A5 #AB4170
triadic
#AB41A5 #A5AB41 #41A5AB
tetradic
#AB41A5 #AB7C41 #41AB47 #4170AB
square
#AB41A5 #AB7C41 #41AB47 #4170AB
split-complementary
#AB41A5 #70AB41 #41AB7C
monochromatic
#521F4F #7F307A #AB41A5 #C465BF #D591D1

Accessibility & contrast

On white

5.21
#AB41A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#AB41A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB41A5
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB41A5#FFFFFF#000000##FFFFFF
##AB41A51.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3963A8
Deuteranopia (green-blind)
#5D72A2
Tritanopia (blue-blind)
#B14C6D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ab41a5;
/* rgb */ color: rgb(171, 65, 165);
/* oklch */ color: oklch(55.7% 0.182 330.0);
Tailwind
colors: {
  custom: {
    50: '#c77dc0',
    500: '#ab41a5',
    950: '#000000',
  },
}
SCSS
$custom: #ab41a5;
$custom-light: #c77dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab41a5",
  "rgb": {
    "r": 171,
    "g": 65,
    "b": 165
  },
  "hsl": {
    "h": 303.396,
    "s": 44.915,
    "l": 46.275
  },
  "oklch": {
    "l": 0.55674,
    "c": 0.1822,
    "h": 330
  },
  "luminance": 0.15155
}

Semantic roles & 50–950 ramp

primary
#AB41A5
secondary
#87C18B
accent
#D55B53
background
#FCF7FB
surface
#F8EEF7
border
#D1C9D0
text
#130A12
muted
#827C81

Preview Lab

Preview with #AB41A5

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

Preview Lab → · Contrast checker → · Palette generator →

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