#AB40AE#AB40AE

#AB40AE is a mid, vivid purple. Relative luminance 0.154; OKLCH L 56.0% C 0.191 H 326.6°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#AB40AE
RGBrgb(171, 64, 174)
HSLhsl(298, 46%, 47%)
HSVhsv(298, 63%, 68%)
CMYKcmyk(1.7%, 63.2%, 0%, 31.8%)
CIE-LABlab(46.15, 57.78, -37.99)
CIE-LCHlch(46.15, 69.15, 326.68°)
OKLaboklab(56.05% 0.1597 -0.1051)
OKLCHoklch(56.05% 0.191 326.6)
XYZxyz(26.2675, 15.3824, 41.6217)
Luminance0.1538 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40AE #43AE40
analogous
#7440AE #AB40AE #AE407A
triadic
#AB40AE #AEAB40 #40AEAB
tetradic
#AB40AE #AE7440 #43AE40 #407AAE
square
#AB40AE #AE7440 #43AE40 #407AAE
split-complementary
#AB40AE #7AAE40 #40AE74
monochromatic
#531F55 #7F3081 #AB40AE #C465C6 #D592D7

Accessibility & contrast

On white

5.15
#AB40AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#AB40AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40AE
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40AE#FFFFFF#000000##FFFFFF
##AB40AE1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3065B1
Deuteranopia (green-blind)
#5872AB
Tritanopia (blue-blind)
#B04F71
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ab40ae;
/* rgb */ color: rgb(171, 64, 174);
/* oklch */ color: oklch(56.0% 0.191 326.6);
Tailwind
colors: {
  custom: {
    50: '#c77cc6',
    500: '#ab40ae',
    950: '#000000',
  },
}
SCSS
$custom: #ab40ae;
$custom-light: #c77cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40ae",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 298.364,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.56045,
    "c": 0.19116,
    "h": 326.6
  },
  "luminance": 0.15381
}

Semantic roles & 50–950 ramp

primary
#AB40AE
secondary
#89C288
accent
#D65256
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AB40AE

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

Preview Lab → · Contrast checker → · Palette generator →

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