#AB4AB2#AB4AB2

#AB4AB2 is a mid, vivid purple. Relative luminance 0.168; OKLCH L 57.4% C 0.180 H 324.9°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#AB4AB2
RGBrgb(171, 74, 178)
HSLhsl(296, 41%, 49%)
HSVhsv(296, 58%, 70%)
CMYKcmyk(3.9%, 58.4%, 0%, 30.2%)
CIE-LABlab(47.97, 54.07, -37.47)
CIE-LCHlch(47.97, 65.79, 325.28°)
OKLaboklab(57.43% 0.1476 -0.1037)
OKLCHoklch(57.43% 0.18 324.9)
XYZxyz(27.2786, 16.7714, 43.9112)
Luminance0.1677 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4AB2 #51B24A
analogous
#774AB2 #AB4AB2 #B24A85
triadic
#AB4AB2 #B2AB4A #4AB2AB
tetradic
#AB4AB2 #B2774A #51B24A #4A85B2
square
#AB4AB2 #B2774A #51B24A #4A85B2
split-complementary
#AB4AB2 #85B24A #4AB277
monochromatic
#58265C #813887 #AB4AB2 #C074C5 #D39FD7

Accessibility & contrast

On white

4.82
#AB4AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#AB4AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4AB2
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4AB2#FFFFFF#000000##FFFFFF
##AB4AB21.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A6AB5
Deuteranopia (green-blind)
#5C76AF
Tritanopia (blue-blind)
#AF5877
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab4ab2;
/* rgb */ color: rgb(171, 74, 178);
/* oklch */ color: oklch(57.4% 0.180 324.9);
Tailwind
colors: {
  custom: {
    50: '#c782c9',
    500: '#ab4ab2',
    950: '#000000',
  },
}
SCSS
$custom: #ab4ab2;
$custom-light: #c782c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4ab2",
  "rgb": {
    "r": 171,
    "g": 74,
    "b": 178
  },
  "hsl": {
    "h": 295.962,
    "s": 41.27,
    "l": 49.412
  },
  "oklch": {
    "l": 0.57434,
    "c": 0.18038,
    "h": 324.9
  },
  "luminance": 0.1677
}

Semantic roles & 50–950 ramp

primary
#AB4AB2
secondary
#97C494
accent
#D1575F
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AB4AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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