#AB40D2#AB40D2

#AB40D2 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.2% C 0.223 H 315.5°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#AB40D2
RGBrgb(171, 64, 210)
HSLhsl(284, 62%, 54%)
HSVhsv(284, 70%, 82%)
CMYKcmyk(18.6%, 69.5%, 0%, 17.6%)
CIE-LABlab(48.23, 64.54, -55.59)
CIE-LCHlch(48.23, 85.18, 319.26°)
OKLaboklab(58.21% 0.1591 -0.1565)
OKLCHoklch(58.21% 0.223 315.5)
XYZxyz(30.2590, 16.9790, 62.6436)
Luminance0.1698 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40D2 #67D240
analogous
#6240D2 #AB40D2 #D240B0
triadic
#AB40D2 #D2AB40 #40D2AB
tetradic
#AB40D2 #D26240 #67D240 #40B0D2
square
#AB40D2 #D26240 #67D240 #40B0D2
split-complementary
#AB40D2 #B0D240 #40D262
monochromatic
#621D7B #8929AC #AB40D2 #C172DE #D7A3E9

Accessibility & contrast

On white

4.78
#AB40D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#AB40D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40D2
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40D2#FFFFFF#000000##FFFFFF
##AB40D21.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD6
Deuteranopia (green-blind)
#3D75CF
Tritanopia (blue-blind)
#A85E85
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab40d2;
/* rgb */ color: rgb(171, 64, 210);
/* oklch */ color: oklch(58.2% 0.223 315.5);
Tailwind
colors: {
  custom: {
    50: '#c87ee0',
    500: '#ab40d2',
    950: '#000000',
  },
}
SCSS
$custom: #ab40d2;
$custom-light: #c87ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40d2",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 283.973,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.5821,
    "c": 0.22311,
    "h": 315.5
  },
  "luminance": 0.16978
}

Semantic roles & 50–950 ramp

primary
#AB40D2
secondary
#A8D698
accent
#E5436E
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AB40D2

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

Preview Lab → · Contrast checker → · Palette generator →

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