#AB41B3#AB41B3

#AB41B3 is a mid, vivid purple. Relative luminance 0.157; OKLCH L 56.4% C 0.194 H 324.9°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#AB41B3
RGBrgb(171, 65, 179)
HSLhsl(296, 47%, 48%)
HSVhsv(296, 64%, 70%)
CMYKcmyk(4.5%, 63.7%, 0%, 29.8%)
CIE-LABlab(46.57, 58.25, -40.27)
CIE-LCHlch(46.57, 70.81, 325.34°)
OKLaboklab(56.43% 0.1587 -0.1117)
OKLCHoklch(56.43% 0.194 324.9)
XYZxyz(26.8209, 15.6948, 44.2558)
Luminance0.1569 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB41B3 #49B341
analogous
#7241B3 #AB41B3 #B34182
triadic
#AB41B3 #B3AB41 #41B3AB
tetradic
#AB41B3 #B37241 #49B341 #4182B3
square
#AB41B3 #B37241 #49B341 #4182B3
split-complementary
#AB41B3 #82B341 #41B372
monochromatic
#552059 #803186 #AB41B3 #C269C8 #D496D9

Accessibility & contrast

On white

5.07
#AB41B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#AB41B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB41B3
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB41B3#FFFFFF#000000##FFFFFF
##AB41B31.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C66B6
Deuteranopia (green-blind)
#5673B0
Tritanopia (blue-blind)
#AF5274
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ab41b3;
/* rgb */ color: rgb(171, 65, 179);
/* oklch */ color: oklch(56.4% 0.194 324.9);
Tailwind
colors: {
  custom: {
    50: '#c77dca',
    500: '#ab41b3',
    950: '#000000',
  },
}
SCSS
$custom: #ab41b3;
$custom-light: #c77dca;
$custom-dark: #000000;
JSON
{
  "hex": "#ab41b3",
  "rgb": {
    "r": 171,
    "g": 65,
    "b": 179
  },
  "hsl": {
    "h": 295.789,
    "s": 46.721,
    "l": 47.843
  },
  "oklch": {
    "l": 0.56434,
    "c": 0.19411,
    "h": 324.9
  },
  "luminance": 0.15693
}

Semantic roles & 50–950 ramp

primary
#AB41B3
secondary
#8FC48B
accent
#D6515B
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AB41B3

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

Preview Lab → · Contrast checker → · Palette generator →

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