#AB40DA#AB40DA

#AB40DA is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.7% C 0.230 H 313.4°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#AB40DA
RGBrgb(171, 64, 218)
HSLhsl(282, 68%, 55%)
HSVhsv(282, 71%, 85%)
CMYKcmyk(21.6%, 70.6%, 0%, 14.5%)
CIE-LABlab(48.74, 66.14, -59.35)
CIE-LCHlch(48.74, 88.86, 318.10°)
OKLaboklab(58.74% 0.1583 -0.1675)
OKLCHoklch(58.74% 0.23 313.4)
XYZxyz(31.2807, 17.3876, 68.0244)
Luminance0.1739 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB40DA #6FDA40
analogous
#5E40DA #AB40DA #DA40BC
triadic
#AB40DA #DAAB40 #40DAAB
tetradic
#AB40DA #DA5E40 #6FDA40 #40BCDA
square
#AB40DA #DA5E40 #6FDA40 #40BCDA
split-complementary
#AB40DA #BCDA40 #40DA5E
monochromatic
#651A86 #8B24B9 #AB40DA #C273E4 #D8A7EE

Accessibility & contrast

On white

4.69
#AB40DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#AB40DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB40DA
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB40DA#FFFFFF#000000##FFFFFF
##AB40DA1.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDE
Deuteranopia (green-blind)
#3476D7
Tritanopia (blue-blind)
#A66189
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ab40da;
/* rgb */ color: rgb(171, 64, 218);
/* oklch */ color: oklch(58.7% 0.230 313.4);
Tailwind
colors: {
  custom: {
    50: '#c87ee6',
    500: '#ab40da',
    950: '#000000',
  },
}
SCSS
$custom: #ab40da;
$custom-light: #c87ee6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab40da",
  "rgb": {
    "r": 171,
    "g": 64,
    "b": 218
  },
  "hsl": {
    "h": 281.688,
    "s": 67.544,
    "l": 55.294
  },
  "oklch": {
    "l": 0.58738,
    "c": 0.23042,
    "h": 313.4
  },
  "luminance": 0.17387
}

Semantic roles & 50–950 ramp

primary
#AB40DA
secondary
#AEDB9B
accent
#EA3D72
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB40DA

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

Preview Lab → · Contrast checker → · Palette generator →

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