#AB40CD#AB40CD

#AB40CD is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.9% C 0.219 H 316.8°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#AB40CD
RGBrgb(171, 64, 205)
HSLhsl(286, 59%, 53%)
HSVhsv(286, 69%, 80%)
CMYKcmyk(16.6%, 68.8%, 0%, 19.6%)
CIE-LABlab(47.92, 63.56, -53.22)
CIE-LCHlch(47.92, 82.90, 320.06°)
OKLaboklab(57.89% 0.1594 -0.1495)
OKLCHoklch(57.89% 0.219 316.8)
XYZxyz(29.6458, 16.7337, 59.4141)
Luminance0.1673 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40CD #62CD40
analogous
#6540CD #AB40CD #CD40A8
triadic
#AB40CD #CDAB40 #40CDAB
tetradic
#AB40CD #CD6540 #62CD40 #40A8CD
square
#AB40CD #CD6540 #62CD40 #40A8CD
split-complementary
#AB40CD #A8CD40 #40CD65
monochromatic
#601E74 #872BA5 #AB40CD #C071DA #D6A1E6

Accessibility & contrast

On white

4.83
#AB40CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#AB40CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40CD
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40CD#FFFFFF#000000##FFFFFF
##AB40CD1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#4275CA
Tritanopia (blue-blind)
#A95C82
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab40cd;
/* rgb */ color: rgb(171, 64, 205);
/* oklch */ color: oklch(57.9% 0.219 316.8);
Tailwind
colors: {
  custom: {
    50: '#c87ddd',
    500: '#ab40cd',
    950: '#000000',
  },
}
SCSS
$custom: #ab40cd;
$custom-light: #c87ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40cd",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 285.532,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.57889,
    "c": 0.21857,
    "h": 316.8
  },
  "luminance": 0.16732
}

Semantic roles & 50–950 ramp

primary
#AB40CD
secondary
#A5D396
accent
#E2466C
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AB40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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