#AB4ACC#AB4ACC

#AB4ACC is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 58.9% C 0.205 H 316.5°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#AB4ACC
RGBrgb(171, 74, 204)
HSLhsl(285, 56%, 55%)
HSVhsv(285, 64%, 80%)
CMYKcmyk(16.2%, 63.7%, 0%, 20%)
CIE-LABlab(49.39, 59.09, -50.29)
CIE-LCHlch(49.39, 77.59, 319.60°)
OKLaboklab(58.93% 0.1484 -0.141)
OKLCHoklch(58.93% 0.205 316.5)
XYZxyz(30.1408, 17.9163, 58.9855)
Luminance0.1792 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4ACC #6BCC4A
analogous
#6A4ACC #AB4ACC #CC4AAC
triadic
#AB4ACC #CCAB4A #4ACCAB
tetradic
#AB4ACC #CC6A4A #6BCC4A #4AACCC
square
#AB4ACC #CC6A4A #6BCC4A #4AACCC
split-complementary
#AB4ACC #ACCC4A #4ACC6A
monochromatic
#632279 #8A30A9 #AB4ACC #C17AD9 #D7A9E7

Accessibility & contrast

On white

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

On black

4.58
#AB4ACC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4ACC
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4ACC#FFFFFF#000000##000000
##AB4ACC1.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A6FD0
Deuteranopia (green-blind)
#4B78C9
Tritanopia (blue-blind)
#A96285
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ab4acc;
/* rgb */ color: rgb(171, 74, 204);
/* oklch */ color: oklch(58.9% 0.205 316.5);
Tailwind
colors: {
  custom: {
    50: '#c783dc',
    500: '#ab4acc',
    950: '#000000',
  },
}
SCSS
$custom: #ab4acc;
$custom-light: #c783dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4acc",
  "rgb": {
    "r": 171,
    "g": 74,
    "b": 204
  },
  "hsl": {
    "h": 284.769,
    "s": 56.034,
    "l": 54.51
  },
  "oklch": {
    "l": 0.58928,
    "c": 0.20473,
    "h": 316.5
  },
  "luminance": 0.17915
}

Semantic roles & 50–950 ramp

primary
#AB4ACC
secondary
#ABD49D
accent
#DF486F
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB4ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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