#AB4AAA#AB4AAA

#AB4AAA is a mid, vivid purple. Relative luminance 0.165; OKLCH L 57.0% C 0.173 H 328.0°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#AB4AAA
RGBrgb(171, 74, 170)
HSLhsl(301, 40%, 48%)
HSVhsv(301, 57%, 67%)
CMYKcmyk(0%, 56.7%, 0.6%, 32.9%)
CIE-LABlab(47.57, 52.62, -33.40)
CIE-LCHlch(47.57, 62.33, 327.60°)
OKLaboklab(57.01% 0.1468 -0.0919)
OKLCHoklch(57.01% 0.173 328)
XYZxyz(26.4987, 16.4594, 39.8037)
Luminance0.1646 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4AAA #4AAB4B
analogous
#7C4AAB #AB4AAA #AB4A79
triadic
#AB4AAA #AAAB4A #4AAAAB
tetradic
#AB4AAA #AB7C4A #4AAB4B #4A79AB
square
#AB4AAA #AB7C4A #4AAB4B #4A79AB
split-complementary
#AB4AAA #79AB4A #4AAB7C
monochromatic
#562555 #803880 #AB4AAA #C171C1 #D49BD3

Accessibility & contrast

On white

4.89
#AB4AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#AB4AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4AAA
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4AAA#FFFFFF#000000##FFFFFF
##AB4AAA1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4069AD
Deuteranopia (green-blind)
#6075A7
Tritanopia (blue-blind)
#B05573
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ab4aaa;
/* rgb */ color: rgb(171, 74, 170);
/* oklch */ color: oklch(57.0% 0.173 328.0);
Tailwind
colors: {
  custom: {
    50: '#c782c3',
    500: '#ab4aaa',
    950: '#000000',
  },
}
SCSS
$custom: #ab4aaa;
$custom-light: #c782c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4aaa",
  "rgb": {
    "r": 171,
    "g": 74,
    "b": 170
  },
  "hsl": {
    "h": 300.619,
    "s": 39.592,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57012,
    "c": 0.17321,
    "h": 328
  },
  "luminance": 0.16458
}

Semantic roles & 50–950 ramp

primary
#AB4AAA
secondary
#90C091
accent
#CF5A58
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130B12
muted
#827C81

Preview Lab

Preview with #AB4AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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