#AB2DAC#AB2DAC

#AB2DAC is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.1% C 0.212 H 327.7°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#AB2DAC
RGBrgb(171, 45, 172)
HSLhsl(300, 59%, 43%)
HSVhsv(300, 74%, 67%)
CMYKcmyk(0.6%, 73.8%, 0%, 32.5%)
CIE-LABlab(43.53, 64.53, -40.97)
CIE-LCHlch(43.53, 76.43, 327.59°)
OKLaboklab(54.12% 0.1796 -0.1136)
OKLCHoklch(54.12% 0.213 327.7)
XYZxyz(25.1790, 13.5151, 40.3042)
Luminance0.1351 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB2DAC #2EAC2D
analogous
#6C2DAC #AB2DAC #AC2D6D
triadic
#AB2DAC #ACAB2D #2DACAB
tetradic
#AB2DAC #AC6C2D #2EAC2D #2D6DAC
square
#AB2DAC #AC6C2D #2EAC2D #2D6DAC
split-complementary
#AB2DAC #6DAC2D #2DAC6C
monochromatic
#4B144B #7B207B #AB2DAC #CE47CF #DB78DC

Accessibility & contrast

On white

5.67
#AB2DAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#AB2DAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB2DAC
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB2DAC#FFFFFF#000000##FFFFFF
##AB2DAC1.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105CAF
Deuteranopia (green-blind)
#4F6CA9
Tritanopia (blue-blind)
#B0416A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab2dac;
/* rgb */ color: rgb(171, 45, 172);
/* oklch */ color: oklch(54.1% 0.212 327.7);
Tailwind
colors: {
  custom: {
    50: '#c873c5',
    500: '#ab2dac',
    950: '#000000',
  },
}
SCSS
$custom: #ab2dac;
$custom-light: #c873c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab2dac",
  "rgb": {
    "r": 171,
    "g": 45,
    "b": 172
  },
  "hsl": {
    "h": 299.528,
    "s": 58.525,
    "l": 42.549
  },
  "oklch": {
    "l": 0.54121,
    "c": 0.2125,
    "h": 327.7
  },
  "luminance": 0.13513
}

Semantic roles & 50–950 ramp

primary
#AB2DAC
secondary
#72C471
accent
#E24647
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB2DAC

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

Preview Lab → · Contrast checker → · Palette generator →

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