#AB2EAF#AB2EAF

#AB2EAF is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.4% C 0.214 H 326.7°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#AB2EAF
RGBrgb(171, 46, 175)
HSLhsl(298, 58%, 43%)
HSVhsv(298, 74%, 69%)
CMYKcmyk(2.3%, 73.7%, 0%, 31.4%)
CIE-LABlab(43.81, 64.71, -42.29)
CIE-LCHlch(43.81, 77.30, 326.83°)
OKLaboklab(54.38% 0.1786 -0.1174)
OKLCHoklch(54.38% 0.214 326.7)
XYZxyz(25.5090, 13.7088, 41.8516)
Luminance0.1371 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2EAF #32AF2E
analogous
#6B2EAF #AB2EAF #AF2E72
triadic
#AB2EAF #AFAB2E #2EAFAB
tetradic
#AB2EAF #AF6B2E #32AF2E #2E72AF
square
#AB2EAF #AF6B2E #32AF2E #2E72AF
split-complementary
#AB2EAF #72AF2E #2EAF6B
monochromatic
#4C154E #7C217F #AB2EAF #CB4BD0 #D97BDC

Accessibility & contrast

On white

5.61
#AB2EAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#AB2EAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2EAF
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2EAF#FFFFFF#000000##FFFFFF
##AB2EAF1.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A5DB3
Deuteranopia (green-blind)
#4E6DAC
Tritanopia (blue-blind)
#B0436C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab2eaf;
/* rgb */ color: rgb(171, 46, 175);
/* oklch */ color: oklch(54.4% 0.214 326.7);
Tailwind
colors: {
  custom: {
    50: '#c874c7',
    500: '#ab2eaf',
    950: '#000000',
  },
}
SCSS
$custom: #ab2eaf;
$custom-light: #c874c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2eaf",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 175
  },
  "hsl": {
    "h": 298.14,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54378,
    "c": 0.21378,
    "h": 326.7
  },
  "luminance": 0.13707
}

Semantic roles & 50–950 ramp

primary
#AB2EAF
secondary
#77C574
accent
#E2464B
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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