#AB4DC5#AB4DC5

#AB4DC5 is a mid, vivid purple. Relative luminance 0.180; OKLCH L 58.9% C 0.194 H 318.4°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#AB4DC5
RGBrgb(171, 77, 197)
HSLhsl(287, 51%, 54%)
HSVhsv(287, 61%, 77%)
CMYKcmyk(13.2%, 60.9%, 0%, 22.7%)
CIE-LABlab(49.49, 56.33, -46.10)
CIE-LCHlch(49.49, 72.79, 320.70°)
OKLaboklab(58.87% 0.1448 -0.1288)
OKLCHoklch(58.87% 0.194 318.4)
XYZxyz(29.5251, 17.9981, 54.7312)
Luminance0.1800 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4DC5 #67C54D
analogous
#6F4DC5 #AB4DC5 #C54DA3
triadic
#AB4DC5 #C5AB4D #4DC5AB
tetradic
#AB4DC5 #C56F4D #67C54D #4DA3C5
square
#AB4DC5 #C56F4D #67C54D #4DA3C5
split-complementary
#AB4DC5 #A3C54D #4DC56F
monochromatic
#622572 #8934A0 #AB4DC5 #C17BD4 #D7A9E3

Accessibility & contrast

On white

4.57
#AB4DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#AB4DC5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4DC5
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4DC5#FFFFFF#000000##000000
##AB4DC51.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D6FC9
Deuteranopia (green-blind)
#5379C2
Tritanopia (blue-blind)
#AB6182
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ab4dc5;
/* rgb */ color: rgb(171, 77, 197);
/* oklch */ color: oklch(58.9% 0.194 318.4);
Tailwind
colors: {
  custom: {
    50: '#c784d7',
    500: '#ab4dc5',
    950: '#000000',
  },
}
SCSS
$custom: #ab4dc5;
$custom-light: #c784d7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4dc5",
  "rgb": {
    "r": 171,
    "g": 77,
    "b": 197
  },
  "hsl": {
    "h": 287,
    "s": 50.847,
    "l": 53.725
  },
  "oklch": {
    "l": 0.58871,
    "c": 0.1938,
    "h": 318.4
  },
  "luminance": 0.17997
}

Semantic roles & 50–950 ramp

primary
#AB4DC5
secondary
#A8D19D
accent
#DA4D6C
background
#FCF8FD
surface
#F8EFFA
border
#D1CAD3
text
#130B14
muted
#827C83

Preview Lab

Preview with #AB4DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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