#AB2EB8#AB2EB8

#AB2EB8 is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 54.9% C 0.221 H 323.8°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#AB2EB8
RGBrgb(171, 46, 184)
HSLhsl(294, 60%, 45%)
HSVhsv(294, 75%, 72%)
CMYKcmyk(7.1%, 75%, 0%, 27.8%)
CIE-LABlab(44.34, 66.24, -46.76)
CIE-LCHlch(44.34, 81.08, 324.78°)
OKLaboklab(54.92% 0.1783 -0.1305)
OKLCHoklch(54.92% 0.221 323.8)
XYZxyz(26.4225, 14.0742, 46.6630)
Luminance0.1407 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2EB8 #3BB82E
analogous
#662EB8 #AB2EB8 #B82E80
triadic
#AB2EB8 #B8AB2E #2EB8AB
tetradic
#AB2EB8 #B8662E #3BB82E #2E80B8
square
#AB2EB8 #B8662E #3BB82E #2E80B8
split-complementary
#AB2EB8 #80B82E #2EB866
monochromatic
#501656 #7D2287 #AB2EB8 #C750D3 #D781DF

Accessibility & contrast

On white

5.51
#AB2EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB2EB8
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2EB8#FFFFFF#000000##FFFFFF
##AB2EB81.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBC
Deuteranopia (green-blind)
#476EB5
Tritanopia (blue-blind)
#AE4871
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ab2eb8;
/* rgb */ color: rgb(171, 46, 184);
/* oklch */ color: oklch(54.9% 0.221 323.8);
Tailwind
colors: {
  custom: {
    50: '#c874ce',
    500: '#ab2eb8',
    950: '#000000',
  },
}
SCSS
$custom: #ab2eb8;
$custom-light: #c874ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2eb8",
  "rgb": {
    "r": 171,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 294.348,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54923,
    "c": 0.2209,
    "h": 323.8
  },
  "luminance": 0.14073
}

Semantic roles & 50–950 ramp

primary
#AB2EB8
secondary
#81C879
accent
#E34554
background
#FCF7FC
surface
#F9EDF9
border
#D2C8D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AB2EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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