#AB2EB1#AB2EB1

#AB2EB1 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.5% C 0.215 H 326.0°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#AB2EB1
RGBrgb(171, 46, 177)
HSLhsl(297, 59%, 44%)
HSVhsv(297, 74%, 69%)
CMYKcmyk(3.4%, 74%, 0%, 30.6%)
CIE-LABlab(43.93, 65.04, -43.29)
CIE-LCHlch(43.93, 78.13, 326.35°)
OKLaboklab(54.5% 0.1786 -0.1204)
OKLCHoklch(54.5% 0.215 326)
XYZxyz(25.7069, 13.7880, 42.8938)
Luminance0.1379 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2EB1 #34B12E
analogous
#692EB1 #AB2EB1 #B12E75
triadic
#AB2EB1 #B1AB2E #2EB1AB
tetradic
#AB2EB1 #B1692E #34B12E #2E75B1
square
#AB2EB1 #B1692E #34B12E #2E75B1
split-complementary
#AB2EB1 #75B12E #2EB169
monochromatic
#4D1550 #7C2180 #AB2EB1 #CA4CD0 #D97CDD

Accessibility & contrast

On white

5.59
#AB2EB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#AB2EB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2EB1
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2EB1#FFFFFF#000000##FFFFFF
##AB2EB11.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#025EB5
Deuteranopia (green-blind)
#4C6DAE
Tritanopia (blue-blind)
#AF446E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab2eb1;
/* rgb */ color: rgb(171, 46, 177);
/* oklch */ color: oklch(54.5% 0.215 326.0);
Tailwind
colors: {
  custom: {
    50: '#c874c9',
    500: '#ab2eb1',
    950: '#000000',
  },
}
SCSS
$custom: #ab2eb1;
$custom-light: #c874c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2eb1",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 177
  },
  "hsl": {
    "h": 297.252,
    "s": 58.744,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54497,
    "c": 0.21535,
    "h": 326
  },
  "luminance": 0.13786
}

Semantic roles & 50–950 ramp

primary
#AB2EB1
secondary
#79C675
accent
#E2464D
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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