#AB4EC8#AB4EC8

#AB4EC8 is a mid, vivid purple. Relative luminance 0.183; OKLCH L 59.2% C 0.195 H 317.4°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#AB4EC8
RGBrgb(171, 78, 200)
HSLhsl(286, 53%, 55%)
HSVhsv(286, 61%, 78%)
CMYKcmyk(14.5%, 61%, 0%, 21.6%)
CIE-LABlab(49.83, 56.46, -47.29)
CIE-LCHlch(49.83, 73.65, 320.05°)
OKLaboklab(59.17% 0.1437 -0.1322)
OKLCHoklch(59.17% 0.195 317.4)
XYZxyz(29.9428, 18.2780, 56.5831)
Luminance0.1828 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4EC8 #6BC84E
analogous
#6E4EC8 #AB4EC8 #C84EA8
triadic
#AB4EC8 #C8AB4E #4EC8AB
tetradic
#AB4EC8 #C86E4E #6BC84E #4EA8C8
square
#AB4EC8 #C86E4E #6BC84E #4EA8C8
split-complementary
#AB4EC8 #A8C84E #4EC86E
monochromatic
#632577 #8A33A5 #AB4EC8 #C17DD7 #D7ABE5

Accessibility & contrast

On white

4.51
#AB4EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#AB4EC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4EC8
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4EC8#FFFFFF#000000##000000
##AB4EC81.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B71CC
Deuteranopia (green-blind)
#5279C5
Tritanopia (blue-blind)
#AA6384
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ab4ec8;
/* rgb */ color: rgb(171, 78, 200);
/* oklch */ color: oklch(59.2% 0.195 317.4);
Tailwind
colors: {
  custom: {
    50: '#c785d9',
    500: '#ab4ec8',
    950: '#000000',
  },
}
SCSS
$custom: #ab4ec8;
$custom-light: #c785d9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4ec8",
  "rgb": {
    "r": 171,
    "g": 78,
    "b": 200
  },
  "hsl": {
    "h": 285.738,
    "s": 52.586,
    "l": 54.51
  },
  "oklch": {
    "l": 0.5917,
    "c": 0.19527,
    "h": 317.4
  },
  "luminance": 0.18277
}

Semantic roles & 50–950 ramp

primary
#AB4EC8
secondary
#ABD39F
accent
#DC4C6E
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB4EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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