#AB4EC4#AB4EC4

#AB4EC4 is a mid, vivid purple. Relative luminance 0.181; OKLCH L 58.9% C 0.191 H 318.6°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#AB4EC4
RGBrgb(171, 78, 196)
HSLhsl(287, 50%, 54%)
HSVhsv(287, 60%, 77%)
CMYKcmyk(12.8%, 60.2%, 0%, 23.1%)
CIE-LABlab(49.61, 55.66, -45.34)
CIE-LCHlch(49.61, 71.79, 320.83°)
OKLaboklab(58.94% 0.1436 -0.1266)
OKLCHoklch(58.94% 0.191 318.6)
XYZxyz(29.4814, 18.0935, 54.1533)
Luminance0.1809 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4EC4 #67C44E
analogous
#704EC4 #AB4EC4 #C44EA2
triadic
#AB4EC4 #C4AB4E #4EC4AB
tetradic
#AB4EC4 #C4704E #67C44E #4EA2C4
square
#AB4EC4 #C4704E #67C44E #4EA2C4
split-complementary
#AB4EC4 #A2C44E #4EC470
monochromatic
#622672 #8935A0 #AB4EC4 #C17CD3 #D7AAE3

Accessibility & contrast

On white

4.55
#AB4EC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#AB4EC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4EC4
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4EC4#FFFFFF#000000##000000
##AB4EC41.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3070C8
Deuteranopia (green-blind)
#5479C1
Tritanopia (blue-blind)
#AB6182
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ab4ec4;
/* rgb */ color: rgb(171, 78, 196);
/* oklch */ color: oklch(58.9% 0.191 318.6);
Tailwind
colors: {
  custom: {
    50: '#c785d6',
    500: '#ab4ec4',
    950: '#000000',
  },
}
SCSS
$custom: #ab4ec4;
$custom-light: #c785d6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4ec4",
  "rgb": {
    "r": 171,
    "g": 78,
    "b": 196
  },
  "hsl": {
    "h": 287.288,
    "s": 50,
    "l": 53.725
  },
  "oklch": {
    "l": 0.58937,
    "c": 0.19139,
    "h": 318.6
  },
  "luminance": 0.18092
}

Semantic roles & 50–950 ramp

primary
#AB4EC4
secondary
#A8D09E
accent
#DA4E6C
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#130B14
muted
#827C83

Preview Lab

Preview with #AB4EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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