#AB4ECA#AB4ECA

#AB4ECA is a mid, vivid purple. Relative luminance 0.184; OKLCH L 59.3% C 0.197 H 316.8°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#AB4ECA
RGBrgb(171, 78, 202)
HSLhsl(285, 54%, 55%)
HSVhsv(285, 61%, 79%)
CMYKcmyk(15.3%, 61.4%, 0%, 20.8%)
CIE-LABlab(49.94, 56.86, -48.26)
CIE-LCHlch(49.94, 74.58, 319.68°)
OKLaboklab(59.29% 0.1437 -0.1351)
OKLCHoklch(59.29% 0.197 316.8)
XYZxyz(30.1781, 18.3721, 57.8222)
Luminance0.1837 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4ECA #6DCA4E
analogous
#6D4ECA #AB4ECA #CA4EAB
triadic
#AB4ECA #CAAB4E #4ECAAB
tetradic
#AB4ECA #CA6D4E #6DCA4E #4EABCA
square
#AB4ECA #CA6D4E #6DCA4E #4EABCA
split-complementary
#AB4ECA #ABCA4E #4ECA6D
monochromatic
#642479 #8B32A8 #AB4ECA #C17DD8 #D8ACE6

Accessibility & contrast

On white

4.49
#AB4ECA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.67
#AB4ECA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4ECA
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4ECA#FFFFFF#000000##000000
##AB4ECA1.004.494.674.67
#FFFFFF4.491.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2871CE
Deuteranopia (green-blind)
#507AC7
Tritanopia (blue-blind)
#AA6485
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ab4eca;
/* rgb */ color: rgb(171, 78, 202);
/* oklch */ color: oklch(59.3% 0.197 316.8);
Tailwind
colors: {
  custom: {
    50: '#c785db',
    500: '#ab4eca',
    950: '#000000',
  },
}
SCSS
$custom: #ab4eca;
$custom-light: #c785db;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4eca",
  "rgb": {
    "r": 171,
    "g": 78,
    "b": 202
  },
  "hsl": {
    "h": 285,
    "s": 53.913,
    "l": 54.902
  },
  "oklch": {
    "l": 0.59289,
    "c": 0.19722,
    "h": 316.8
  },
  "luminance": 0.18371
}

Semantic roles & 50–950 ramp

primary
#AB4ECA
secondary
#ADD4A0
accent
#DD4B6F
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB4ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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