#AB40D5#AB40D5

#AB40D5 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.4% C 0.226 H 314.7°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#AB40D5
RGBrgb(171, 64, 213)
HSLhsl(283, 64%, 54%)
HSVhsv(283, 70%, 84%)
CMYKcmyk(19.7%, 70%, 0%, 16.5%)
CIE-LABlab(48.42, 65.14, -57.01)
CIE-LCHlch(48.42, 86.56, 318.81°)
OKLaboklab(58.41% 0.1588 -0.1606)
OKLCHoklch(58.41% 0.226 314.7)
XYZxyz(30.6362, 17.1299, 64.6305)
Luminance0.1713 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40D5 #6AD540
analogous
#6140D5 #AB40D5 #D540B5
triadic
#AB40D5 #D5AB40 #40D5AB
tetradic
#AB40D5 #D56140 #6AD540 #40B5D5
square
#AB40D5 #D56140 #6AD540 #40B5D5
split-complementary
#AB40D5 #B5D540 #40D561
monochromatic
#631C7F #8A27B1 #AB40D5 #C172E0 #D7A4EB

Accessibility & contrast

On white

4.74
#AB40D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#AB40D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40D5
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40D5#FFFFFF#000000##FFFFFF
##AB40D51.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD9
Deuteranopia (green-blind)
#3A76D2
Tritanopia (blue-blind)
#A75F86
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab40d5;
/* rgb */ color: rgb(171, 64, 213);
/* oklch */ color: oklch(58.4% 0.226 314.7);
Tailwind
colors: {
  custom: {
    50: '#c87ee3',
    500: '#ab40d5',
    950: '#000000',
  },
}
SCSS
$custom: #ab40d5;
$custom-light: #c87ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40d5",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 283.087,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.58406,
    "c": 0.22585,
    "h": 314.7
  },
  "luminance": 0.17129
}

Semantic roles & 50–950 ramp

primary
#AB40D5
secondary
#ABD899
accent
#E74170
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B15
muted
#827C84

Preview Lab

Preview with #AB40D5

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

Preview Lab → · Contrast checker → · Palette generator →

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