#AB4E9D#AB4E9D

#AB4E9D is a mid, vivid purple. Relative luminance 0.165; OKLCH L 56.9% C 0.156 H 333.5°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AB4E9D
RGBrgb(171, 78, 157)
HSLhsl(309, 37%, 49%)
HSVhsv(309, 54%, 67%)
CMYKcmyk(0%, 54.4%, 8.2%, 32.9%)
CIE-LABlab(47.68, 48.44, -25.54)
CIE-LCHlch(47.68, 54.77, 332.20°)
OKLaboklab(56.89% 0.1394 -0.0695)
OKLCHoklch(56.89% 0.156 333.5)
XYZxyz(25.6048, 16.5428, 33.7362)
Luminance0.1654 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4E9D #4EAB5C
analogous
#8B4EAB #AB4E9D #AB4E6F
triadic
#AB4E9D #9DAB4E #4E9DAB
tetradic
#AB4E9D #AB8B4E #4EAB5C #4E6FAB
square
#AB4E9D #AB8B4E #4EAB5C #4E6FAB
split-complementary
#AB4E9D #6FAB4E #4EAB8B
monochromatic
#572850 #813B76 #AB4E9D #C076B5 #D4A0CC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB4E9D#FFFFFF#000000##FFFFFF
##AB4E9D1.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)
#4C69A0
Deuteranopia (green-blind)
#68769A
Tritanopia (blue-blind)
#B2546E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ab4e9d;
/* rgb */ color: rgb(171, 78, 157);
/* oklch */ color: oklch(56.9% 0.156 333.5);
Tailwind
colors: {
  custom: {
    50: '#c684ba',
    500: '#ab4e9d',
    950: '#000000',
  },
}
SCSS
$custom: #ab4e9d;
$custom-light: #c684ba;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4e9d",
  "rgb": {
    "r": 171,
    "g": 78,
    "b": 157
  },
  "hsl": {
    "h": 309.032,
    "s": 37.349,
    "l": 48.824
  },
  "oklch": {
    "l": 0.56894,
    "c": 0.15573,
    "h": 333.5
  },
  "luminance": 0.16541
}

Semantic roles & 50–950 ramp

primary
#AB4E9D
secondary
#94C19B
accent
#CD6C5A
background
#FCF8FB
surface
#F8EFF6
border
#D1CAD0
text
#130B11
muted
#827C80

Preview Lab

Preview with #AB4E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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