#AB2EB7#AB2EB7

#AB2EB7 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.9% C 0.220 H 324.1°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#AB2EB7
RGBrgb(171, 46, 183)
HSLhsl(295, 60%, 45%)
HSVhsv(295, 75%, 72%)
CMYKcmyk(6.6%, 74.9%, 0%, 28.2%)
CIE-LABlab(44.28, 66.07, -46.26)
CIE-LCHlch(44.28, 80.66, 325.00°)
OKLaboklab(54.86% 0.1783 -0.129)
OKLCHoklch(54.86% 0.22 324.1)
XYZxyz(26.3181, 14.0325, 46.1129)
Luminance0.1403 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2EB7 #3AB72E
analogous
#672EB7 #AB2EB7 #B72E7E
triadic
#AB2EB7 #B7AB2E #2EB7AB
tetradic
#AB2EB7 #B7672E #3AB72E #2E7EB7
square
#AB2EB7 #B7672E #3AB72E #2E7EB7
split-complementary
#AB2EB7 #7EB72E #2EB767
monochromatic
#501555 #7D2286 #AB2EB7 #C74FD3 #D780DF

Accessibility & contrast

On white

5.52
#AB2EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#AB2EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2EB7
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2EB7#FFFFFF#000000##FFFFFF
##AB2EB71.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#486EB4
Tritanopia (blue-blind)
#AE4771
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ab2eb7;
/* rgb */ color: rgb(171, 46, 183);
/* oklch */ color: oklch(54.9% 0.220 324.1);
Tailwind
colors: {
  custom: {
    50: '#c874cd',
    500: '#ab2eb7',
    950: '#000000',
  },
}
SCSS
$custom: #ab2eb7;
$custom-light: #c874cd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2eb7",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 294.745,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.54862,
    "c": 0.2201,
    "h": 324.1
  },
  "luminance": 0.14031
}

Semantic roles & 50–950 ramp

primary
#AB2EB7
secondary
#80C879
accent
#E34553
background
#FCF7FC
surface
#F9EDF9
border
#D2C8D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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