#AB4BAD#AB4BAD

#AB4BAD is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.3% C 0.174 H 326.8°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AB4BAD
RGBrgb(171, 75, 173)
HSLhsl(299, 40%, 49%)
HSVhsv(299, 57%, 68%)
CMYKcmyk(1.2%, 56.6%, 0%, 32.2%)
CIE-LABlab(47.89, 52.69, -34.66)
CIE-LCHlch(47.89, 63.07, 326.66°)
OKLaboklab(57.29% 0.1458 -0.0956)
OKLCHoklch(57.29% 0.174 326.8)
XYZxyz(26.8530, 16.7088, 41.3378)
Luminance0.1671 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4BAD #4DAD4B
analogous
#7A4BAD #AB4BAD #AD4B7E
triadic
#AB4BAD #ADAB4B #4BADAB
tetradic
#AB4BAD #AD7A4B #4DAD4B #4B7EAD
square
#AB4BAD #AD7A4B #4DAD4B #4B7EAD
split-complementary
#AB4BAD #7EAD4B #4BAD7A
monochromatic
#572658 #813882 #AB4BAD #C173C2 #D49ED5

Accessibility & contrast

On white

4.84
#AB4BAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#AB4BAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4BAD
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4BAD#FFFFFF#000000##FFFFFF
##AB4BAD1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F6AB0
Deuteranopia (green-blind)
#5F76AA
Tritanopia (blue-blind)
#AF5775
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab4bad;
/* rgb */ color: rgb(171, 75, 173);
/* oklch */ color: oklch(57.3% 0.174 326.8);
Tailwind
colors: {
  custom: {
    50: '#c782c6',
    500: '#ab4bad',
    950: '#000000',
  },
}
SCSS
$custom: #ab4bad;
$custom-light: #c782c6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4bad",
  "rgb": {
    "r": 171,
    "g": 75,
    "b": 173
  },
  "hsl": {
    "h": 298.776,
    "s": 39.516,
    "l": 48.627
  },
  "oklch": {
    "l": 0.57294,
    "c": 0.17435,
    "h": 326.8
  },
  "luminance": 0.16707
}

Semantic roles & 50–950 ramp

primary
#AB4BAD
secondary
#93C192
accent
#CF585B
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AB4BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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