#AB40D8#AB40D8

#AB40D8 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.6% C 0.229 H 313.9°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#AB40D8
RGBrgb(171, 64, 216)
HSLhsl(282, 66%, 55%)
HSVhsv(282, 70%, 85%)
CMYKcmyk(20.8%, 70.4%, 0%, 15.3%)
CIE-LABlab(48.62, 65.73, -58.41)
CIE-LCHlch(48.62, 87.94, 318.38°)
OKLaboklab(58.6% 0.1585 -0.1647)
OKLCHoklch(58.6% 0.229 313.9)
XYZxyz(31.0205, 17.2836, 66.6544)
Luminance0.1728 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40D8 #6DD840
analogous
#5F40D8 #AB40D8 #D840B9
triadic
#AB40D8 #D8AB40 #40D8AB
tetradic
#AB40D8 #D85F40 #6DD840 #40B9D8
square
#AB40D8 #D85F40 #6DD840 #40B9D8
split-complementary
#AB40D8 #B9D840 #40D85F
monochromatic
#641B83 #8B25B6 #AB40D8 #C173E2 #D8A6ED

Accessibility & contrast

On white

4.71
#AB40D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#AB40D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40D8
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40D8#FFFFFF#000000##FFFFFF
##AB40D81.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDC
Deuteranopia (green-blind)
#3676D5
Tritanopia (blue-blind)
#A76088
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab40d8;
/* rgb */ color: rgb(171, 64, 216);
/* oklch */ color: oklch(58.6% 0.229 313.9);
Tailwind
colors: {
  custom: {
    50: '#c87ee5',
    500: '#ab40d8',
    950: '#000000',
  },
}
SCSS
$custom: #ab40d8;
$custom-light: #c87ee5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40d8",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 282.237,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.58604,
    "c": 0.22859,
    "h": 313.9
  },
  "luminance": 0.17283
}

Semantic roles & 50–950 ramp

primary
#AB40D8
secondary
#ADDA9A
accent
#E93F71
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB40D8

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

Preview Lab → · Contrast checker → · Palette generator →

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