#AB2EB5#AB2EB5

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

Color values

HEX#AB2EB5
RGBrgb(171, 46, 181)
HSLhsl(296, 59%, 45%)
HSVhsv(296, 75%, 71%)
CMYKcmyk(5.5%, 74.6%, 0%, 29%)
CIE-LABlab(44.16, 65.72, -45.28)
CIE-LCHlch(44.16, 79.81, 325.44°)
OKLaboklab(54.74% 0.1784 -0.1262)
OKLCHoklch(54.74% 0.219 324.7)
XYZxyz(26.1114, 13.9498, 45.0244)
Luminance0.1395 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2EB5 #38B52E
analogous
#682EB5 #AB2EB5 #B52E7B
triadic
#AB2EB5 #B5AB2E #2EB5AB
tetradic
#AB2EB5 #B5682E #38B52E #2E7BB5
square
#AB2EB5 #B5682E #38B52E #2E7BB5
split-complementary
#AB2EB5 #7BB52E #2EB568
monochromatic
#4F1553 #7D2284 #AB2EB5 #C84ED2 #D77FDE

Accessibility & contrast

On white

5.54
#AB2EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#AB2EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2EB5
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2EB5#FFFFFF#000000##FFFFFF
##AB2EB51.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB9
Deuteranopia (green-blind)
#4A6DB2
Tritanopia (blue-blind)
#AF4670
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab2eb5;
/* rgb */ color: rgb(171, 46, 181);
/* oklch */ color: oklch(54.7% 0.218 324.7);
Tailwind
colors: {
  custom: {
    50: '#c874cc',
    500: '#ab2eb5',
    950: '#000000',
  },
}
SCSS
$custom: #ab2eb5;
$custom-light: #c874cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2eb5",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 295.556,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.54739,
    "c": 0.2185,
    "h": 324.7
  },
  "luminance": 0.13948
}

Semantic roles & 50–950 ramp

primary
#AB2EB5
secondary
#7DC778
accent
#E34551
background
#FCF7FC
surface
#F9EDF9
border
#D2C8D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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