#AD40D2#AD40D2

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

Color values

HEX#AD40D2
RGBrgb(173, 64, 210)
HSLhsl(285, 62%, 54%)
HSVhsv(285, 70%, 82%)
CMYKcmyk(17.6%, 69.5%, 0%, 17.6%)
CIE-LABlab(48.52, 64.96, -55.12)
CIE-LCHlch(48.52, 85.19, 319.68°)
OKLaboklab(58.47% 0.1615 -0.155)
OKLCHoklch(58.47% 0.224 316.2)
XYZxyz(30.6980, 17.2054, 62.6642)
Luminance0.1720 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD40D2 #65D240
analogous
#6440D2 #AD40D2 #D240AE
triadic
#AD40D2 #D2AD40 #40D2AD
tetradic
#AD40D2 #D26440 #65D240 #40AED2
square
#AD40D2 #D26440 #65D240 #40AED2
split-complementary
#AD40D2 #AED240 #40D264
monochromatic
#631D7B #8B29AC #AD40D2 #C272DE #D8A3E9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AD40D2#FFFFFF#000000##FFFFFF
##AD40D21.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)
#006DD6
Deuteranopia (green-blind)
#4076CF
Tritanopia (blue-blind)
#AB5D85
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ad40d2;
/* rgb */ color: rgb(173, 64, 210);
/* oklch */ color: oklch(58.5% 0.224 316.2);
Tailwind
colors: {
  custom: {
    50: '#c97ee0',
    500: '#ad40d2',
    950: '#000000',
  },
}
SCSS
$custom: #ad40d2;
$custom-light: #c97ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#ad40d2",
  "rgb": {
    "r": 173,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 284.795,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.58472,
    "c": 0.22385,
    "h": 316.2
  },
  "luminance": 0.17204
}

Semantic roles & 50–950 ramp

primary
#AD40D2
secondary
#A8D698
accent
#E5436C
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AD40D2

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

Preview Lab → · Contrast checker → · Palette generator →

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