#AB2EB4#AB2EB4

#AB2EB4 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.7% C 0.218 H 325.1°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#AB2EB4
RGBrgb(171, 46, 180)
HSLhsl(296, 59%, 44%)
HSVhsv(296, 74%, 71%)
CMYKcmyk(5%, 74.4%, 0%, 29.4%)
CIE-LABlab(44.10, 65.55, -44.78)
CIE-LCHlch(44.10, 79.39, 325.66°)
OKLaboklab(54.68% 0.1785 -0.1247)
OKLCHoklch(54.68% 0.218 325.1)
XYZxyz(26.0092, 13.9089, 44.4859)
Luminance0.1391 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2EB4 #37B42E
analogous
#682EB4 #AB2EB4 #B42E7A
triadic
#AB2EB4 #B4AB2E #2EB4AB
tetradic
#AB2EB4 #B4682E #37B42E #2E7AB4
square
#AB2EB4 #B4682E #37B42E #2E7AB4
split-complementary
#AB2EB4 #7AB42E #2EB468
monochromatic
#4E1553 #7D2283 #AB2EB4 #C94ED2 #D87EDE

Accessibility & contrast

On white

5.55
#AB2EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#AB2EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2EB4
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2EB4#FFFFFF#000000##FFFFFF
##AB2EB41.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB8
Deuteranopia (green-blind)
#4A6DB1
Tritanopia (blue-blind)
#AF466F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab2eb4;
/* rgb */ color: rgb(171, 46, 180);
/* oklch */ color: oklch(54.7% 0.218 325.1);
Tailwind
colors: {
  custom: {
    50: '#c874cb',
    500: '#ab2eb4',
    950: '#000000',
  },
}
SCSS
$custom: #ab2eb4;
$custom-light: #c874cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2eb4",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 295.97,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54678,
    "c": 0.21772,
    "h": 325.1
  },
  "luminance": 0.13907
}

Semantic roles & 50–950 ramp

primary
#AB2EB4
secondary
#7CC777
accent
#E24550
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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