#AB2DB2#AB2DB2

#AB2DB2 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.5% C 0.217 H 325.7°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#AB2DB2
RGBrgb(171, 45, 178)
HSLhsl(297, 60%, 44%)
HSVhsv(297, 75%, 70%)
CMYKcmyk(3.9%, 74.7%, 0%, 30.2%)
CIE-LABlab(43.87, 65.53, -43.97)
CIE-LCHlch(43.87, 78.92, 326.14°)
OKLaboklab(54.48% 0.1794 -0.1223)
OKLCHoklch(54.48% 0.217 325.7)
XYZxyz(25.7683, 13.7508, 43.4078)
Luminance0.1375 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2DB2 #34B22D
analogous
#682DB2 #AB2DB2 #B22D76
triadic
#AB2DB2 #B2AB2D #2DB2AB
tetradic
#AB2DB2 #B2682D #34B22D #2D76B2
square
#AB2DB2 #B2682D #34B22D #2D76B2
split-complementary
#AB2DB2 #76B22D #2DB268
monochromatic
#4D1450 #7C2181 #AB2DB2 #CA4BD1 #D97CDE

Accessibility & contrast

On white

5.60
#AB2DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#AB2DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2DB2
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2DB2#FFFFFF#000000##FFFFFF
##AB2DB21.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab2db2;
/* rgb */ color: rgb(171, 45, 178);
/* oklch */ color: oklch(54.5% 0.217 325.7);
Tailwind
colors: {
  custom: {
    50: '#c874c9',
    500: '#ab2db2',
    950: '#000000',
  },
}
SCSS
$custom: #ab2db2;
$custom-light: #c874c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2db2",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 296.842,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54478,
    "c": 0.21716,
    "h": 325.7
  },
  "luminance": 0.13749
}

Semantic roles & 50–950 ramp

primary
#AB2DB2
secondary
#79C675
accent
#E3454D
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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