#AB40AD#AB40AD

#AB40AD is a mid, vivid purple. Relative luminance 0.153; OKLCH L 56.0% C 0.190 H 327.0°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#AB40AD
RGBrgb(171, 64, 173)
HSLhsl(299, 46%, 46%)
HSVhsv(299, 63%, 68%)
CMYKcmyk(1.2%, 63%, 0%, 32.2%)
CIE-LABlab(46.10, 57.61, -37.48)
CIE-LCHlch(46.10, 68.73, 326.95°)
OKLaboklab(55.99% 0.1596 -0.1036)
OKLCHoklch(55.99% 0.19 327)
XYZxyz(26.1704, 15.3435, 41.1102)
Luminance0.1534 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40AD #42AD40
analogous
#7540AD #AB40AD #AD4079
triadic
#AB40AD #ADAB40 #40ADAB
tetradic
#AB40AD #AD7540 #42AD40 #4079AD
square
#AB40AD #AD7540 #42AD40 #4079AD
split-complementary
#AB40AD #79AD40 #40AD75
monochromatic
#531F54 #7F2F80 #AB40AD #C464C6 #D591D6

Accessibility & contrast

On white

5.16
#AB40AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#AB40AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40AD
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40AD#FFFFFF#000000##FFFFFF
##AB40AD1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3164B0
Deuteranopia (green-blind)
#5872AA
Tritanopia (blue-blind)
#B04F71
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ab40ad;
/* rgb */ color: rgb(171, 64, 173);
/* oklch */ color: oklch(56.0% 0.190 327.0);
Tailwind
colors: {
  custom: {
    50: '#c77cc6',
    500: '#ab40ad',
    950: '#000000',
  },
}
SCSS
$custom: #ab40ad;
$custom-light: #c77cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40ad",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 298.899,
    "s": 45.992,
    "l": 46.471
  },
  "oklch": {
    "l": 0.5599,
    "c": 0.1903,
    "h": 327
  },
  "luminance": 0.15342
}

Semantic roles & 50–950 ramp

primary
#AB40AD
secondary
#88C287
accent
#D65255
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AB40AD

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

Preview Lab → · Contrast checker → · Palette generator →

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