#AB40D3#AB40D3

#AB40D3 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.3% C 0.224 H 315.2°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#AB40D3
RGBrgb(171, 64, 211)
HSLhsl(284, 63%, 54%)
HSVhsv(284, 70%, 83%)
CMYKcmyk(19%, 69.7%, 0%, 17.3%)
CIE-LABlab(48.30, 64.74, -56.07)
CIE-LCHlch(48.30, 85.64, 319.11°)
OKLaboklab(58.28% 0.159 -0.1578)
OKLCHoklch(58.28% 0.224 315.2)
XYZxyz(30.3840, 17.0290, 63.3018)
Luminance0.1703 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40D3 #68D340
analogous
#6240D3 #AB40D3 #D340B2
triadic
#AB40D3 #D3AB40 #40D3AB
tetradic
#AB40D3 #D36240 #68D340 #40B2D3
square
#AB40D3 #D36240 #68D340 #40B2D3
split-complementary
#AB40D3 #B2D340 #40D362
monochromatic
#621D7C #8928AE #AB40D3 #C172DE #D7A3EA

Accessibility & contrast

On white

4.77
#AB40D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#AB40D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40D3
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40D3#FFFFFF#000000##FFFFFF
##AB40D31.004.774.414.77
#FFFFFF4.771.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD7
Deuteranopia (green-blind)
#3C75D0
Tritanopia (blue-blind)
#A85E85
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab40d3;
/* rgb */ color: rgb(171, 64, 211);
/* oklch */ color: oklch(58.3% 0.224 315.2);
Tailwind
colors: {
  custom: {
    50: '#c87ee1',
    500: '#ab40d3',
    950: '#000000',
  },
}
SCSS
$custom: #ab40d3;
$custom-light: #c87ee1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40d3",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 283.673,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.58275,
    "c": 0.22403,
    "h": 315.2
  },
  "luminance": 0.17028
}

Semantic roles & 50–950 ramp

primary
#AB40D3
secondary
#A9D798
accent
#E6426F
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AB40D3

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

Preview Lab → · Contrast checker → · Palette generator →

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