#AB41B2#AB41B2

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

Color values

HEX#AB41B2
RGBrgb(171, 65, 178)
HSLhsl(296, 47%, 48%)
HSVhsv(296, 63%, 70%)
CMYKcmyk(3.9%, 63.5%, 0%, 30.2%)
CIE-LABlab(46.52, 58.07, -39.77)
CIE-LCHlch(46.52, 70.38, 325.60°)
OKLaboklab(56.38% 0.1587 -0.1102)
OKLCHoklch(56.38% 0.193 325.2)
XYZxyz(26.7202, 15.6545, 43.7251)
Luminance0.1565 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB41B2 #48B241
analogous
#7241B2 #AB41B2 #B24181
triadic
#AB41B2 #B2AB41 #41B2AB
tetradic
#AB41B2 #B27241 #48B241 #4181B2
square
#AB41B2 #B27241 #48B241 #4181B2
split-complementary
#AB41B2 #81B241 #41B272
monochromatic
#552058 #803185 #AB41B2 #C268C8 #D495D8

Accessibility & contrast

On white

5.08
#AB41B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#AB41B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB41B2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB41B2#FFFFFF#000000##FFFFFF
##AB41B21.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D66B5
Deuteranopia (green-blind)
#5673AF
Tritanopia (blue-blind)
#AF5174
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ab41b2;
/* rgb */ color: rgb(171, 65, 178);
/* oklch */ color: oklch(56.4% 0.193 325.2);
Tailwind
colors: {
  custom: {
    50: '#c77dc9',
    500: '#ab41b2',
    950: '#000000',
  },
}
SCSS
$custom: #ab41b2;
$custom-light: #c77dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab41b2",
  "rgb": {
    "r": 171,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 296.283,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56378,
    "c": 0.19324,
    "h": 325.2
  },
  "luminance": 0.15653
}

Semantic roles & 50–950 ramp

primary
#AB41B2
secondary
#8EC48B
accent
#D6525A
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AB41B2

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

Preview Lab → · Contrast checker → · Palette generator →

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