#AB4CD8#AB4CD8

#AB4CD8 is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 59.9% C 0.214 H 313.0°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#AB4CD8
RGBrgb(171, 76, 216)
HSLhsl(281, 64%, 57%)
HSVhsv(281, 65%, 85%)
CMYKcmyk(20.8%, 64.8%, 0%, 15.3%)
CIE-LABlab(50.44, 60.65, -55.49)
CIE-LCHlch(50.44, 82.20, 317.54°)
OKLaboklab(59.91% 0.1458 -0.1562)
OKLCHoklch(59.91% 0.214 313)
XYZxyz(31.7715, 18.7856, 66.9048)
Luminance0.1878 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4CD8 #79D84C
analogous
#654CD8 #AB4CD8 #D84CBF
triadic
#AB4CD8 #D8AB4C #4CD8AB
tetradic
#AB4CD8 #D8654C #79D84C #4CBFD8
square
#AB4CD8 #D8654C #79D84C #4CBFD8
split-complementary
#AB4CD8 #BFD84C #4CD865
monochromatic
#681E8B #8E29BE #AB4CD8 #C37EE3 #DAB1EE

Accessibility & contrast

On white

4.41
#AB4CD8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#AB4CD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4CD8
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4CD8#FFFFFF#000000##000000
##AB4CD81.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073DC
Deuteranopia (green-blind)
#427AD5
Tritanopia (blue-blind)
#A6678C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab4cd8;
/* rgb */ color: rgb(171, 76, 216);
/* oklch */ color: oklch(59.9% 0.214 313.0);
Tailwind
colors: {
  custom: {
    50: '#c884e5',
    500: '#ab4cd8',
    950: '#000000',
  },
}
SCSS
$custom: #ab4cd8;
$custom-light: #c884e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4cd8",
  "rgb": {
    "r": 171,
    "g": 76,
    "b": 216
  },
  "hsl": {
    "h": 280.714,
    "s": 64.22,
    "l": 57.255
  },
  "oklch": {
    "l": 0.59908,
    "c": 0.21365,
    "h": 313
  },
  "luminance": 0.18785
}

Semantic roles & 50–950 ramp

primary
#AB4CD8
secondary
#B6DCA4
accent
#E74176
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB4CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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