#AB4DC8#AB4DC8

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

Color values

HEX#AB4DC8
RGBrgb(171, 77, 200)
HSLhsl(286, 53%, 54%)
HSVhsv(286, 62%, 78%)
CMYKcmyk(14.5%, 61.5%, 0%, 21.6%)
CIE-LABlab(49.66, 56.92, -47.56)
CIE-LCHlch(49.66, 74.18, 320.12°)
OKLaboklab(59.05% 0.1449 -0.133)
OKLCHoklch(59.05% 0.197 317.4)
XYZxyz(29.8723, 18.1370, 56.5596)
Luminance0.1814 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4DC8 #6AC84D
analogous
#6E4DC8 #AB4DC8 #C84DA7
triadic
#AB4DC8 #C8AB4D #4DC8AB
tetradic
#AB4DC8 #C86E4D #6AC84D #4DA7C8
square
#AB4DC8 #C86E4D #6AC84D #4DA7C8
split-complementary
#AB4DC8 #A7C84D #4DC86E
monochromatic
#632476 #8A33A5 #AB4DC8 #C17CD6 #D7ABE5

Accessibility & contrast

On white

4.54
#AB4DC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#AB4DC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4DC8
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4DC8#FFFFFF#000000##000000
##AB4DC81.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2970CC
Deuteranopia (green-blind)
#5179C5
Tritanopia (blue-blind)
#AA6283
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ab4dc8;
/* rgb */ color: rgb(171, 77, 200);
/* oklch */ color: oklch(59.0% 0.197 317.4);
Tailwind
colors: {
  custom: {
    50: '#c784d9',
    500: '#ab4dc8',
    950: '#000000',
  },
}
SCSS
$custom: #ab4dc8;
$custom-light: #c784d9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4dc8",
  "rgb": {
    "r": 171,
    "g": 77,
    "b": 200
  },
  "hsl": {
    "h": 285.854,
    "s": 52.79,
    "l": 54.314
  },
  "oklch": {
    "l": 0.59047,
    "c": 0.1967,
    "h": 317.4
  },
  "luminance": 0.18136
}

Semantic roles & 50–950 ramp

primary
#AB4DC8
secondary
#ABD29E
accent
#DC4C6E
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB4DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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