#AB2DB7#AB2DB7

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

Color values

HEX#AB2DB7
RGBrgb(171, 45, 183)
HSLhsl(295, 61%, 45%)
HSVhsv(295, 75%, 72%)
CMYKcmyk(6.6%, 75.4%, 0%, 28.2%)
CIE-LABlab(44.17, 66.39, -46.44)
CIE-LCHlch(44.17, 81.02, 325.03°)
OKLaboklab(54.78% 0.1792 -0.1295)
OKLCHoklch(54.78% 0.221 324.1)
XYZxyz(26.2795, 13.9553, 46.1000)
Luminance0.1395 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2DB7 #39B72D
analogous
#662DB7 #AB2DB7 #B72D7E
triadic
#AB2DB7 #B7AB2D #2DB7AB
tetradic
#AB2DB7 #B7662D #39B72D #2D7EB7
square
#AB2DB7 #B7662D #39B72D #2D7EB7
split-complementary
#AB2DB7 #7EB72D #2DB766
monochromatic
#4F1555 #7D2186 #AB2DB7 #C84ED3 #D77FDF

Accessibility & contrast

On white

5.54
#AB2DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#AB2DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2DB7
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2DB7#FFFFFF#000000##FFFFFF
##AB2DB71.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab2db7;
/* rgb */ color: rgb(171, 45, 183);
/* oklch */ color: oklch(54.8% 0.221 324.1);
Tailwind
colors: {
  custom: {
    50: '#c874cd',
    500: '#ab2db7',
    950: '#000000',
  },
}
SCSS
$custom: #ab2db7;
$custom-light: #c874cd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2db7",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 294.783,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.54783,
    "c": 0.2211,
    "h": 324.1
  },
  "luminance": 0.13954
}

Semantic roles & 50–950 ramp

primary
#AB2DB7
secondary
#7FC878
accent
#E44452
background
#FCF7FC
surface
#F9EDF9
border
#D2C8D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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