#AB40AF#AB40AF

#AB40AF is a mid, vivid purple. Relative luminance 0.154; OKLCH L 56.1% C 0.192 H 326.3°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#AB40AF
RGBrgb(171, 64, 175)
HSLhsl(298, 46%, 47%)
HSVhsv(298, 63%, 69%)
CMYKcmyk(2.3%, 63.4%, 0%, 31.4%)
CIE-LABlab(46.21, 57.96, -38.49)
CIE-LCHlch(46.21, 69.58, 326.41°)
OKLaboklab(56.1% 0.1597 -0.1066)
OKLCHoklch(56.1% 0.192 326.3)
XYZxyz(26.3653, 15.4215, 42.1371)
Luminance0.1542 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40AF #44AF40
analogous
#7440AF #AB40AF #AF407C
triadic
#AB40AF #AFAB40 #40AFAB
tetradic
#AB40AF #AF7440 #44AF40 #407CAF
square
#AB40AF #AF7440 #44AF40 #407CAF
split-complementary
#AB40AF #7CAF40 #40AF74
monochromatic
#531F55 #7F3082 #AB40AF #C365C7 #D592D7

Accessibility & contrast

On white

5.14
#AB40AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB40AF
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40AF#FFFFFF#000000##FFFFFF
##AB40AF1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F65B2
Deuteranopia (green-blind)
#5772AC
Tritanopia (blue-blind)
#AF4F72
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ab40af;
/* rgb */ color: rgb(171, 64, 175);
/* oklch */ color: oklch(56.1% 0.192 326.3);
Tailwind
colors: {
  custom: {
    50: '#c77cc7',
    500: '#ab40af',
    950: '#000000',
  },
}
SCSS
$custom: #ab40af;
$custom-light: #c77cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40af",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 297.838,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.561,
    "c": 0.19201,
    "h": 326.3
  },
  "luminance": 0.1542
}

Semantic roles & 50–950 ramp

primary
#AB40AF
secondary
#8AC388
accent
#D65256
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AB40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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