#AB40AC#AB40AC

#AB40AC is a mid, vivid purple. Relative luminance 0.153; OKLCH L 55.9% C 0.189 H 327.4°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#AB40AC
RGBrgb(171, 64, 172)
HSLhsl(299, 46%, 46%)
HSVhsv(299, 63%, 67%)
CMYKcmyk(0.6%, 62.8%, 0%, 32.5%)
CIE-LABlab(46.05, 57.43, -36.97)
CIE-LCHlch(46.05, 68.30, 327.23°)
OKLaboklab(55.94% 0.1596 -0.1021)
OKLCHoklch(55.94% 0.189 327.4)
XYZxyz(26.0740, 15.3050, 40.6025)
Luminance0.1530 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40AC #41AC40
analogous
#7540AC #AB40AC #AC4077
triadic
#AB40AC #ACAB40 #40ACAB
tetradic
#AB40AC #AC7540 #41AC40 #4077AC
square
#AB40AC #AC7540 #41AC40 #4077AC
split-complementary
#AB40AC #77AC40 #40AC75
monochromatic
#521F53 #7F2F7F #AB40AC #C464C5 #D591D6

Accessibility & contrast

On white

5.17
#AB40AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#AB40AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40AC
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40AC#FFFFFF#000000##FFFFFF
##AB40AC1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3264AF
Deuteranopia (green-blind)
#5972A9
Tritanopia (blue-blind)
#B04E70
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ab40ac;
/* rgb */ color: rgb(171, 64, 172);
/* oklch */ color: oklch(55.9% 0.189 327.4);
Tailwind
colors: {
  custom: {
    50: '#c77cc5',
    500: '#ab40ac',
    950: '#000000',
  },
}
SCSS
$custom: #ab40ac;
$custom-light: #c77cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40ac",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 299.444,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.55936,
    "c": 0.18946,
    "h": 327.4
  },
  "luminance": 0.15303
}

Semantic roles & 50–950 ramp

primary
#AB40AC
secondary
#87C187
accent
#D55254
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AB40AC

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

Preview Lab → · Contrast checker → · Palette generator →

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