#AB4EAA#AB4EAA

#AB4EAA is a mid, vivid purple. Relative luminance 0.170; OKLCH L 57.5% C 0.167 H 327.9°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#AB4EAA
RGBrgb(171, 78, 170)
HSLhsl(301, 37%, 49%)
HSVhsv(301, 54%, 67%)
CMYKcmyk(0%, 54.4%, 0.6%, 32.9%)
CIE-LABlab(48.27, 50.73, -32.30)
CIE-LCHlch(48.27, 60.14, 327.51°)
OKLaboklab(57.53% 0.1415 -0.0888)
OKLCHoklch(57.53% 0.167 327.9)
XYZxyz(26.7743, 17.0106, 39.8955)
Luminance0.1701 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4EAA #4EAB4F
analogous
#7E4EAB #AB4EAA #AB4E7C
triadic
#AB4EAA #AAAB4E #4EAAAB
tetradic
#AB4EAA #AB7E4E #4EAB4F #4E7CAB
square
#AB4EAA #AB7E4E #4EAB4F #4E7CAB
split-complementary
#AB4EAA #7CAB4E #4EAB7E
monochromatic
#572856 #813B80 #AB4EAA #C076C0 #D4A0D3

Accessibility & contrast

On white

4.77
#AB4EAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#AB4EAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4EAA
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4EAA#FFFFFF#000000##FFFFFF
##AB4EAA1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456BAD
Deuteranopia (green-blind)
#6377A7
Tritanopia (blue-blind)
#B05875
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab4eaa;
/* rgb */ color: rgb(171, 78, 170);
/* oklch */ color: oklch(57.5% 0.167 327.9);
Tailwind
colors: {
  custom: {
    50: '#c684c3',
    500: '#ab4eaa',
    950: '#000000',
  },
}
SCSS
$custom: #ab4eaa;
$custom-light: #c684c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4eaa",
  "rgb": {
    "r": 171,
    "g": 78,
    "b": 170
  },
  "hsl": {
    "h": 300.645,
    "s": 37.349,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57527,
    "c": 0.167,
    "h": 327.9
  },
  "luminance": 0.17009
}

Semantic roles & 50–950 ramp

primary
#AB4EAA
secondary
#94C195
accent
#CD5C5A
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130B12
muted
#827C81

Preview Lab

Preview with #AB4EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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