#AD40C7#AD40C7

#AD40C7 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.8% C 0.214 H 319.3°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AD40C7
RGBrgb(173, 64, 199)
HSLhsl(288, 55%, 52%)
HSVhsv(288, 68%, 78%)
CMYKcmyk(13.1%, 67.8%, 0%, 22%)
CIE-LABlab(47.85, 62.84, -49.86)
CIE-LCHlch(47.85, 80.22, 321.57°)
OKLaboklab(57.78% 0.1622 -0.1396)
OKLCHoklch(57.78% 0.214 319.3)
XYZxyz(29.3744, 16.6759, 55.6933)
Luminance0.1668 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD40C7 #5AC740
analogous
#6A40C7 #AD40C7 #C7409E
triadic
#AD40C7 #C7AD40 #40C7AD
tetradic
#AD40C7 #C76A40 #5AC740 #409EC7
square
#AD40C7 #C76A40 #5AC740 #409EC7
split-complementary
#AD40C7 #9EC740 #40C76A
monochromatic
#5E206D #872E9C #AD40C7 #C16FD5 #D69FE3

Accessibility & contrast

On white

4.84
#AD40C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#AD40C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AD40C7
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AD40C7#FFFFFF#000000##FFFFFF
##AD40C71.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#026ACB
Deuteranopia (green-blind)
#4975C4
Tritanopia (blue-blind)
#AD597F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ad40c7;
/* rgb */ color: rgb(173, 64, 199);
/* oklch */ color: oklch(57.8% 0.214 319.3);
Tailwind
colors: {
  custom: {
    50: '#c97dd9',
    500: '#ad40c7',
    950: '#000000',
  },
}
SCSS
$custom: #ad40c7;
$custom-light: #c97dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#ad40c7",
  "rgb": {
    "r": 173,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 288.444,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.57779,
    "c": 0.21398,
    "h": 319.3
  },
  "luminance": 0.16675
}

Semantic roles & 50–950 ramp

primary
#AD40C7
secondary
#9FCF94
accent
#DE4A66
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140A15
muted
#827C83

Preview Lab

Preview with #AD40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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