#AB4CC2#AB4CC2

#AB4CC2 is a mid, vivid purple. Relative luminance 0.177; OKLCH L 58.6% C 0.192 H 319.4°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#AB4CC2
RGBrgb(171, 76, 194)
HSLhsl(288, 49%, 53%)
HSVhsv(288, 61%, 76%)
CMYKcmyk(11.9%, 60.8%, 0%, 23.9%)
CIE-LABlab(49.16, 56.20, -44.90)
CIE-LCHlch(49.16, 71.93, 321.38°)
OKLaboklab(58.57% 0.146 -0.1253)
OKLCHoklch(58.57% 0.192 319.4)
XYZxyz(29.1154, 17.7231, 52.9157)
Luminance0.1772 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4CC2 #63C24C
analogous
#704CC2 #AB4CC2 #C24C9E
triadic
#AB4CC2 #C2AB4C #4CC2AB
tetradic
#AB4CC2 #C2704C #63C24C #4C9EC2
square
#AB4CC2 #C2704C #63C24C #4C9EC2
split-complementary
#AB4CC2 #9EC24C #4CC270
monochromatic
#60266E #88359C #AB4CC2 #C07AD2 #D6A7E1

Accessibility & contrast

On white

4.62
#AB4CC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#AB4CC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4CC2
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4CC2#FFFFFF#000000##FFFFFF
##AB4CC21.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E6EC6
Deuteranopia (green-blind)
#5478BF
Tritanopia (blue-blind)
#AB5F80
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ab4cc2;
/* rgb */ color: rgb(171, 76, 194);
/* oklch */ color: oklch(58.6% 0.192 319.4);
Tailwind
colors: {
  custom: {
    50: '#c784d5',
    500: '#ab4cc2',
    950: '#000000',
  },
}
SCSS
$custom: #ab4cc2;
$custom-light: #c784d5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4cc2",
  "rgb": {
    "r": 171,
    "g": 76,
    "b": 194
  },
  "hsl": {
    "h": 288.305,
    "s": 49.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.58574,
    "c": 0.19235,
    "h": 319.4
  },
  "luminance": 0.17722
}

Semantic roles & 50–950 ramp

primary
#AB4CC2
secondary
#A5CE9B
accent
#D94F6A
background
#FCF8FD
surface
#F8EFFA
border
#D1CAD3
text
#130B14
muted
#827C83

Preview Lab

Preview with #AB4CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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