#AB2EB2#AB2EB2

#AB2EB2 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.6% C 0.216 H 325.7°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#AB2EB2
RGBrgb(171, 46, 178)
HSLhsl(297, 59%, 44%)
HSVhsv(297, 74%, 70%)
CMYKcmyk(3.9%, 74.2%, 0%, 30.2%)
CIE-LABlab(43.99, 65.21, -43.79)
CIE-LCHlch(43.99, 78.55, 326.12°)
OKLaboklab(54.56% 0.1785 -0.1218)
OKLCHoklch(54.56% 0.216 325.7)
XYZxyz(25.8069, 13.8280, 43.4206)
Luminance0.1383 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2EB2 #35B22E
analogous
#692EB2 #AB2EB2 #B22E77
triadic
#AB2EB2 #B2AB2E #2EB2AB
tetradic
#AB2EB2 #B2692E #35B22E #2E77B2
square
#AB2EB2 #B2692E #35B22E #2E77B2
split-complementary
#AB2EB2 #77B22E #2EB269
monochromatic
#4E1551 #7C2181 #AB2EB2 #CA4CD1 #D87DDD

Accessibility & contrast

On white

5.58
#AB2EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#AB2EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2EB2
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2EB2#FFFFFF#000000##FFFFFF
##AB2EB21.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB6
Deuteranopia (green-blind)
#4C6DAF
Tritanopia (blue-blind)
#AF456E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab2eb2;
/* rgb */ color: rgb(171, 46, 178);
/* oklch */ color: oklch(54.6% 0.216 325.7);
Tailwind
colors: {
  custom: {
    50: '#c874c9',
    500: '#ab2eb2',
    950: '#000000',
  },
}
SCSS
$custom: #ab2eb2;
$custom-light: #c874c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2eb2",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 296.818,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.54557,
    "c": 0.21613,
    "h": 325.7
  },
  "luminance": 0.13826
}

Semantic roles & 50–950 ramp

primary
#AB2EB2
secondary
#7AC676
accent
#E2464E
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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