#AB4DC7#AB4DC7

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

Color values

HEX#AB4DC7
RGBrgb(171, 77, 199)
HSLhsl(286, 52%, 54%)
HSVhsv(286, 61%, 78%)
CMYKcmyk(14.1%, 61.3%, 0%, 22%)
CIE-LABlab(49.61, 56.72, -47.08)
CIE-LCHlch(49.61, 73.71, 320.31°)
OKLaboklab(58.99% 0.1449 -0.1316)
OKLCHoklch(58.99% 0.196 317.7)
XYZxyz(29.7558, 18.0904, 55.9461)
Luminance0.1809 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4DC7 #69C74D
analogous
#6E4DC7 #AB4DC7 #C74DA6
triadic
#AB4DC7 #C7AB4D #4DC7AB
tetradic
#AB4DC7 #C76E4D #69C74D #4DA6C7
square
#AB4DC7 #C76E4D #69C74D #4DA6C7
split-complementary
#AB4DC7 #A6C74D #4DC76E
monochromatic
#622575 #8A33A3 #AB4DC7 #C17CD6 #D7AAE4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB4DC7#FFFFFF#000000##000000
##AB4DC71.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)
#2A70CB
Deuteranopia (green-blind)
#5179C4
Tritanopia (blue-blind)
#AA6283
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ab4dc7;
/* rgb */ color: rgb(171, 77, 199);
/* oklch */ color: oklch(59.0% 0.196 317.7);
Tailwind
colors: {
  custom: {
    50: '#c784d8',
    500: '#ab4dc7',
    950: '#000000',
  },
}
SCSS
$custom: #ab4dc7;
$custom-light: #c784d8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4dc7",
  "rgb": {
    "r": 171,
    "g": 77,
    "b": 199
  },
  "hsl": {
    "h": 286.23,
    "s": 52.137,
    "l": 54.118
  },
  "oklch": {
    "l": 0.58988,
    "c": 0.19573,
    "h": 317.7
  },
  "luminance": 0.18089
}

Semantic roles & 50–950 ramp

primary
#AB4DC7
secondary
#AAD29E
accent
#DC4C6D
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#130B14
muted
#827C83

Preview Lab

Preview with #AB4DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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