#AD40DF#AD40DF

#AD40DF is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.3% C 0.236 H 312.8°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#AD40DF
RGBrgb(173, 64, 223)
HSLhsl(281, 71%, 56%)
HSVhsv(281, 71%, 87%)
CMYKcmyk(22.4%, 71.3%, 0%, 12.5%)
CIE-LABlab(49.35, 67.54, -61.20)
CIE-LCHlch(49.35, 91.14, 317.82°)
OKLaboklab(59.33% 0.1602 -0.1728)
OKLCHoklch(59.33% 0.236 312.8)
XYZxyz(32.3839, 17.8797, 71.5430)
Luminance0.1788 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD40DF #72DF40
analogous
#5E40DF #AD40DF #DF40C2
triadic
#AD40DF #DFAD40 #40DFAD
tetradic
#AD40DF #DF5E40 #72DF40 #40C2DF
square
#AD40DF #DF5E40 #72DF40 #40C2DF
split-complementary
#AD40DF #C2DF40 #40DF5E
monochromatic
#68188D #8F20C1 #AD40DF #C474E8 #DAA9F1

Accessibility & contrast

On white

4.59
#AD40DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#AD40DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AD40DF
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AD40DF#FFFFFF#000000##FFFFFF
##AD40DF1.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E4
Deuteranopia (green-blind)
#3078DC
Tritanopia (blue-blind)
#A7638C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ad40df;
/* rgb */ color: rgb(173, 64, 223);
/* oklch */ color: oklch(59.3% 0.236 312.8);
Tailwind
colors: {
  custom: {
    50: '#ca7eea',
    500: '#ad40df',
    950: '#000000',
  },
}
SCSS
$custom: #ad40df;
$custom-light: #ca7eea;
$custom-dark: #000000;
JSON
{
  "hex": "#ad40df",
  "rgb": {
    "r": 173,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 281.132,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.59329,
    "c": 0.23564,
    "h": 312.8
  },
  "luminance": 0.17879
}

Semantic roles & 50–950 ramp

primary
#AD40DF
secondary
#B1DE9D
accent
#EE3A72
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AD40DF

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

Preview Lab → · Contrast checker → · Palette generator →

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