#AD40D8#AD40D8

#AD40D8 is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.9% C 0.229 H 314.6°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#AD40D8
RGBrgb(173, 64, 216)
HSLhsl(283, 66%, 55%)
HSVhsv(283, 70%, 85%)
CMYKcmyk(19.9%, 70.4%, 0%, 15.3%)
CIE-LABlab(48.90, 66.14, -57.95)
CIE-LCHlch(48.90, 87.93, 318.78°)
OKLaboklab(58.86% 0.161 -0.1633)
OKLCHoklch(58.86% 0.229 314.6)
XYZxyz(31.4596, 17.5100, 66.6750)
Luminance0.1751 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD40D8 #6BD840
analogous
#6140D8 #AD40D8 #D840B7
triadic
#AD40D8 #D8AD40 #40D8AD
tetradic
#AD40D8 #D86140 #6BD840 #40B7D8
square
#AD40D8 #D86140 #6BD840 #40B7D8
split-complementary
#AD40D8 #B7D840 #40D861
monochromatic
#651B83 #8D25B6 #AD40D8 #C373E2 #D9A6ED

Accessibility & contrast

On white

4.66
#AD40D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#AD40D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AD40D8
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AD40D8#FFFFFF#000000##FFFFFF
##AD40D81.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDC
Deuteranopia (green-blind)
#3977D5
Tritanopia (blue-blind)
#A96088
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ad40d8;
/* rgb */ color: rgb(173, 64, 216);
/* oklch */ color: oklch(58.9% 0.229 314.6);
Tailwind
colors: {
  custom: {
    50: '#ca7ee5',
    500: '#ad40d8',
    950: '#000000',
  },
}
SCSS
$custom: #ad40d8;
$custom-light: #ca7ee5;
$custom-dark: #000000;
JSON
{
  "hex": "#ad40d8",
  "rgb": {
    "r": 173,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 283.026,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.58862,
    "c": 0.22928,
    "h": 314.6
  },
  "luminance": 0.17509
}

Semantic roles & 50–950 ramp

primary
#AD40D8
secondary
#ACDA9A
accent
#E93F6F
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AD40D8

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

Preview Lab → · Contrast checker → · Palette generator →

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