#AB4EAB#AB4EAB

#AB4EAB is a mid, vivid purple. Relative luminance 0.170; OKLCH L 57.6% C 0.168 H 327.5°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#AB4EAB
RGBrgb(171, 78, 171)
HSLhsl(300, 37%, 49%)
HSVhsv(300, 54%, 67%)
CMYKcmyk(0%, 54.4%, 0%, 32.9%)
CIE-LABlab(48.32, 50.91, -32.81)
CIE-LCHlch(48.32, 60.56, 327.20°)
OKLaboklab(57.58% 0.1416 -0.0903)
OKLCHoklch(57.58% 0.168 327.5)
XYZxyz(26.8692, 17.0486, 40.3956)
Luminance0.1705 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4EAB #4EAB4E
analogous
#7D4EAB #AB4EAB #AB4E7D
triadic
#AB4EAB #ABAB4E #4EABAB
tetradic
#AB4EAB #AB7D4E #4EAB4E #4E7DAB
square
#AB4EAB #AB7D4E #4EAB4E #4E7DAB
split-complementary
#AB4EAB #7DAB4E #4EAB7D
monochromatic
#572857 #813B81 #AB4EAB #C076C0 #D4A0D4

Accessibility & contrast

On white

4.76
#AB4EAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#AB4EAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4EAB
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4EAB#FFFFFF#000000##FFFFFF
##AB4EAB1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456BAE
Deuteranopia (green-blind)
#6277A8
Tritanopia (blue-blind)
#B05975
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab4eab;
/* rgb */ color: rgb(171, 78, 171);
/* oklch */ color: oklch(57.6% 0.168 327.5);
Tailwind
colors: {
  custom: {
    50: '#c684c4',
    500: '#ab4eab',
    950: '#000000',
  },
}
SCSS
$custom: #ab4eab;
$custom-light: #c684c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4eab",
  "rgb": {
    "r": 171,
    "g": 78,
    "b": 171
  },
  "hsl": {
    "h": 300,
    "s": 37.349,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57577,
    "c": 0.1679,
    "h": 327.5
  },
  "luminance": 0.17047
}

Semantic roles & 50–950 ramp

primary
#AB4EAB
secondary
#94C194
accent
#CD5A5A
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130B12
muted
#827C81

Preview Lab

Preview with #AB4EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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