#AB2DB8#AB2DB8

#AB2DB8 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.8% C 0.222 H 323.8°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#AB2DB8
RGBrgb(171, 45, 184)
HSLhsl(294, 61%, 45%)
HSVhsv(294, 76%, 72%)
CMYKcmyk(7.1%, 75.5%, 0%, 27.8%)
CIE-LABlab(44.23, 66.56, -46.93)
CIE-LCHlch(44.23, 81.44, 324.81°)
OKLaboklab(54.85% 0.1791 -0.131)
OKLCHoklch(54.85% 0.222 323.8)
XYZxyz(26.3839, 13.9970, 46.6501)
Luminance0.1399 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2DB8 #3AB82D
analogous
#652DB8 #AB2DB8 #B82D80
triadic
#AB2DB8 #B8AB2D #2DB8AB
tetradic
#AB2DB8 #B8652D #3AB82D #2D80B8
square
#AB2DB8 #B8652D #3AB82D #2D80B8
split-complementary
#AB2DB8 #80B82D #2DB865
monochromatic
#501556 #7D2187 #AB2DB8 #C74ED4 #D780E0

Accessibility & contrast

On white

5.53
#AB2DB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#AB2DB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2DB8
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2DB8#FFFFFF#000000##FFFFFF
##AB2DB81.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab2db8;
/* rgb */ color: rgb(171, 45, 184);
/* oklch */ color: oklch(54.8% 0.222 323.8);
Tailwind
colors: {
  custom: {
    50: '#c874ce',
    500: '#ab2db8',
    950: '#000000',
  },
}
SCSS
$custom: #ab2db8;
$custom-light: #c874ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2db8",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 294.388,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.54845,
    "c": 0.2219,
    "h": 323.8
  },
  "luminance": 0.13995
}

Semantic roles & 50–950 ramp

primary
#AB2DB8
secondary
#80C978
accent
#E44453
background
#FCF7FC
surface
#F9EDF9
border
#D2C8D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AB2DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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