#AB4CC7#AB4CC7

#AB4CC7 is a mid, vivid purple. Relative luminance 0.179; OKLCH L 58.9% C 0.197 H 317.8°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#AB4CC7
RGBrgb(171, 76, 199)
HSLhsl(286, 52%, 54%)
HSVhsv(286, 62%, 78%)
CMYKcmyk(14.1%, 61.8%, 0%, 22%)
CIE-LABlab(49.44, 57.19, -47.34)
CIE-LCHlch(49.44, 74.24, 320.38°)
OKLaboklab(58.87% 0.1461 -0.1324)
OKLCHoklch(58.87% 0.197 317.8)
XYZxyz(29.6864, 17.9515, 55.9230)
Luminance0.1795 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4CC7 #68C74C
analogous
#6E4CC7 #AB4CC7 #C74CA6
triadic
#AB4CC7 #C7AB4C #4CC7AB
tetradic
#AB4CC7 #C76E4C #68C74C #4CA6C7
square
#AB4CC7 #C76E4C #68C74C #4CA6C7
split-complementary
#AB4CC7 #A6C74C #4CC76E
monochromatic
#622474 #8933A3 #AB4CC7 #C17BD6 #D7A9E4

Accessibility & contrast

On white

4.58
#AB4CC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#AB4CC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4CC7
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4CC7#FFFFFF#000000##000000
##AB4CC71.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#286FCB
Deuteranopia (green-blind)
#5179C4
Tritanopia (blue-blind)
#AA6183
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ab4cc7;
/* rgb */ color: rgb(171, 76, 199);
/* oklch */ color: oklch(58.9% 0.197 317.8);
Tailwind
colors: {
  custom: {
    50: '#c784d8',
    500: '#ab4cc7',
    950: '#000000',
  },
}
SCSS
$custom: #ab4cc7;
$custom-light: #c784d8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4cc7",
  "rgb": {
    "r": 171,
    "g": 76,
    "b": 199
  },
  "hsl": {
    "h": 286.341,
    "s": 52.34,
    "l": 53.922
  },
  "oklch": {
    "l": 0.58866,
    "c": 0.19715,
    "h": 317.8
  },
  "luminance": 0.1795
}

Semantic roles & 50–950 ramp

primary
#AB4CC7
secondary
#A9D29D
accent
#DC4C6D
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#130B14
muted
#827C83

Preview Lab

Preview with #AB4CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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