#AB40D1#AB40D1

#AB40D1 is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.1% C 0.222 H 315.7°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#AB40D1
RGBrgb(171, 64, 209)
HSLhsl(284, 61%, 54%)
HSVhsv(284, 69%, 82%)
CMYKcmyk(18.2%, 69.4%, 0%, 18%)
CIE-LABlab(48.17, 64.34, -55.12)
CIE-LCHlch(48.17, 84.73, 319.41°)
OKLaboklab(58.15% 0.1592 -0.1551)
OKLCHoklch(58.15% 0.222 315.7)
XYZxyz(30.1348, 16.9293, 61.9895)
Luminance0.1693 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40D1 #66D140
analogous
#6240D1 #AB40D1 #D140AE
triadic
#AB40D1 #D1AB40 #40D1AB
tetradic
#AB40D1 #D16240 #66D140 #40AED1
square
#AB40D1 #D16240 #66D140 #40AED1
split-complementary
#AB40D1 #AED140 #40D162
monochromatic
#611D79 #8929AB #AB40D1 #C171DD #D6A3E9

Accessibility & contrast

On white

4.79
#AB40D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#AB40D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40D1
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40D1#FFFFFF#000000##FFFFFF
##AB40D11.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD5
Deuteranopia (green-blind)
#3E75CE
Tritanopia (blue-blind)
#A85D84
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab40d1;
/* rgb */ color: rgb(171, 64, 209);
/* oklch */ color: oklch(58.1% 0.222 315.7);
Tailwind
colors: {
  custom: {
    50: '#c87ee0',
    500: '#ab40d1',
    950: '#000000',
  },
}
SCSS
$custom: #ab40d1;
$custom-light: #c87ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40d1",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 284.276,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.58146,
    "c": 0.22221,
    "h": 315.7
  },
  "luminance": 0.16928
}

Semantic roles & 50–950 ramp

primary
#AB40D1
secondary
#A8D597
accent
#E4446E
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AB40D1

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

Preview Lab → · Contrast checker → · Palette generator →

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