#AB41D2#AB41D2

#AB41D2 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.3% C 0.222 H 315.4°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#AB41D2
RGBrgb(171, 65, 210)
HSLhsl(284, 62%, 54%)
HSVhsv(284, 69%, 82%)
CMYKcmyk(18.6%, 69%, 0%, 17.6%)
CIE-LABlab(48.38, 64.14, -55.36)
CIE-LCHlch(48.38, 84.73, 319.20°)
OKLaboklab(58.31% 0.158 -0.1558)
OKLCHoklch(58.31% 0.222 315.4)
XYZxyz(30.3159, 17.0928, 62.6626)
Luminance0.1709 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB41D2 #68D241
analogous
#6341D2 #AB41D2 #D241B1
triadic
#AB41D2 #D2AB41 #41D2AB
tetradic
#AB41D2 #D26341 #68D241 #41B1D2
square
#AB41D2 #D26341 #68D241 #41B1D2
split-complementary
#AB41D2 #B1D241 #41D263
monochromatic
#621D7B #8929AD #AB41D2 #C172DE #D7A4E9

Accessibility & contrast

On white

4.75
#AB41D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#AB41D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB41D2
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB41D2#FFFFFF#000000##FFFFFF
##AB41D21.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD6
Deuteranopia (green-blind)
#3E76CF
Tritanopia (blue-blind)
#A85E85
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab41d2;
/* rgb */ color: rgb(171, 65, 210);
/* oklch */ color: oklch(58.3% 0.222 315.4);
Tailwind
colors: {
  custom: {
    50: '#c87ee0',
    500: '#ab41d2',
    950: '#000000',
  },
}
SCSS
$custom: #ab41d2;
$custom-light: #c87ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab41d2",
  "rgb": {
    "r": 171,
    "g": 65,
    "b": 210
  },
  "hsl": {
    "h": 283.862,
    "s": 61.702,
    "l": 53.922
  },
  "oklch": {
    "l": 0.58313,
    "c": 0.22191,
    "h": 315.4
  },
  "luminance": 0.17092
}

Semantic roles & 50–950 ramp

primary
#AB41D2
secondary
#A9D698
accent
#E5436F
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AB41D2

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

Preview Lab → · Contrast checker → · Palette generator →

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