#AB40D6#AB40D6

#AB40D6 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.5% C 0.227 H 314.4°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#AB40D6
RGBrgb(171, 64, 214)
HSLhsl(283, 65%, 55%)
HSVhsv(283, 70%, 84%)
CMYKcmyk(20.1%, 70.1%, 0%, 16.1%)
CIE-LABlab(48.49, 65.34, -57.48)
CIE-LCHlch(48.49, 87.02, 318.66°)
OKLaboklab(58.47% 0.1587 -0.162)
OKLCHoklch(58.47% 0.227 314.4)
XYZxyz(30.7636, 17.1808, 65.3010)
Luminance0.1718 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40D6 #6BD640
analogous
#6040D6 #AB40D6 #D640B6
triadic
#AB40D6 #D6AB40 #40D6AB
tetradic
#AB40D6 #D66040 #6BD640 #40B6D6
square
#AB40D6 #D66040 #6BD640 #40B6D6
split-complementary
#AB40D6 #B6D640 #40D660
monochromatic
#631B80 #8A26B2 #AB40D6 #C172E1 #D7A5EC

Accessibility & contrast

On white

4.73
#AB40D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#AB40D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40D6
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40D6#FFFFFF#000000##FFFFFF
##AB40D61.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDA
Deuteranopia (green-blind)
#3976D3
Tritanopia (blue-blind)
#A75F87
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab40d6;
/* rgb */ color: rgb(171, 64, 214);
/* oklch */ color: oklch(58.5% 0.227 314.4);
Tailwind
colors: {
  custom: {
    50: '#c87ee3',
    500: '#ab40d6',
    950: '#000000',
  },
}
SCSS
$custom: #ab40d6;
$custom-light: #c87ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40d6",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 214
  },
  "hsl": {
    "h": 282.8,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.58472,
    "c": 0.22676,
    "h": 314.4
  },
  "luminance": 0.1718
}

Semantic roles & 50–950 ramp

primary
#AB40D6
secondary
#ABD999
accent
#E84070
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB40D6

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

Preview Lab → · Contrast checker → · Palette generator →

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