#AB4FCC#AB4FCC

#AB4FCC is a mid, vivid purple. Relative luminance 0.186; OKLCH L 59.5% C 0.198 H 316.1°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#AB4FCC
RGBrgb(171, 79, 204)
HSLhsl(284, 55%, 55%)
HSVhsv(284, 61%, 80%)
CMYKcmyk(16.2%, 61.3%, 0%, 20%)
CIE-LABlab(50.23, 56.80, -48.96)
CIE-LCHlch(50.23, 74.99, 319.24°)
OKLaboklab(59.53% 0.1425 -0.1371)
OKLCHoklch(59.53% 0.198 316.1)
XYZxyz(30.4880, 18.6106, 59.1012)
Luminance0.1861 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4FCC #70CC4F
analogous
#6C4FCC #AB4FCC #CC4FAE
triadic
#AB4FCC #CCAB4F #4FCCAB
tetradic
#AB4FCC #CC6C4F #70CC4F #4FAECC
square
#AB4FCC #CC6C4F #70CC4F #4FAECC
split-complementary
#AB4FCC #AECC4F #4FCC6C
monochromatic
#65247D #8C32AC #AB4FCC #C27EDA #D8AEE7

Accessibility & contrast

On white

4.45
#AB4FCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#AB4FCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4FCC
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4FCC#FFFFFF#000000##000000
##AB4FCC1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2772D0
Deuteranopia (green-blind)
#507AC9
Tritanopia (blue-blind)
#A96586
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ab4fcc;
/* rgb */ color: rgb(171, 79, 204);
/* oklch */ color: oklch(59.5% 0.198 316.1);
Tailwind
colors: {
  custom: {
    50: '#c786dc',
    500: '#ab4fcc',
    950: '#000000',
  },
}
SCSS
$custom: #ab4fcc;
$custom-light: #c786dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4fcc",
  "rgb": {
    "r": 171,
    "g": 79,
    "b": 204
  },
  "hsl": {
    "h": 284.16,
    "s": 55.066,
    "l": 55.49
  },
  "oklch": {
    "l": 0.59532,
    "c": 0.19775,
    "h": 316.1
  },
  "luminance": 0.1861
}

Semantic roles & 50–950 ramp

primary
#AB4FCC
secondary
#AFD5A1
accent
#DE4971
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB4FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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