#AB4DA2#AB4DA2

#AB4DA2 is a mid, vivid purple. Relative luminance 0.166; OKLCH L 57.0% C 0.162 H 331.2°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AB4DA2
RGBrgb(171, 77, 162)
HSLhsl(306, 38%, 49%)
HSVhsv(306, 55%, 67%)
CMYKcmyk(0%, 55%, 5.3%, 32.9%)
CIE-LABlab(47.72, 49.79, -28.44)
CIE-LCHlch(47.72, 57.34, 330.26°)
OKLaboklab(57% 0.1417 -0.0777)
OKLCHoklch(57% 0.162 331.2)
XYZxyz(25.9699, 16.5760, 36.0071)
Luminance0.1657 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4DA2 #4DAB56
analogous
#854DAB #AB4DA2 #AB4D73
triadic
#AB4DA2 #A2AB4D #4DA2AB
tetradic
#AB4DA2 #AB854D #4DAB56 #4D73AB
square
#AB4DA2 #AB854D #4DAB56 #4D73AB
split-complementary
#AB4DA2 #73AB4D #4DAB85
monochromatic
#572752 #813A7A #AB4DA2 #C175B9 #D49FCF

Accessibility & contrast

On white

4.87
#AB4DA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#AB4DA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4DA2
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4DA2#FFFFFF#000000##FFFFFF
##AB4DA21.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4969A5
Deuteranopia (green-blind)
#65769F
Tritanopia (blue-blind)
#B15570
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ab4da2;
/* rgb */ color: rgb(171, 77, 162);
/* oklch */ color: oklch(57.0% 0.162 331.2);
Tailwind
colors: {
  custom: {
    50: '#c683be',
    500: '#ab4da2',
    950: '#000000',
  },
}
SCSS
$custom: #ab4da2;
$custom-light: #c683be;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4da2",
  "rgb": {
    "r": 171,
    "g": 77,
    "b": 162
  },
  "hsl": {
    "h": 305.745,
    "s": 37.903,
    "l": 48.627
  },
  "oklch": {
    "l": 0.56999,
    "c": 0.16157,
    "h": 331.2
  },
  "luminance": 0.16574
}

Semantic roles & 50–950 ramp

primary
#AB4DA2
secondary
#93C098
accent
#CE655A
background
#FCF8FB
surface
#F8EFF6
border
#D1CAD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AB4DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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