#AD40CC#AD40CC

#AD40CC is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.1% C 0.218 H 317.8°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#AD40CC
RGBrgb(173, 64, 204)
HSLhsl(287, 58%, 53%)
HSVhsv(287, 69%, 80%)
CMYKcmyk(15.2%, 68.6%, 0%, 20%)
CIE-LABlab(48.15, 63.79, -52.27)
CIE-LCHlch(48.15, 82.47, 320.67°)
OKLaboklab(58.09% 0.1619 -0.1466)
OKLCHoklch(58.09% 0.218 317.8)
XYZxyz(29.9645, 16.9120, 58.8010)
Luminance0.1691 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD40CC #5FCC40
analogous
#6740CC #AD40CC #CC40A5
triadic
#AD40CC #CCAD40 #40CCAD
tetradic
#AD40CC #CC6740 #5FCC40 #40A5CC
square
#AD40CC #CC6740 #5FCC40 #40A5CC
split-complementary
#AD40CC #A5CC40 #40CC67
monochromatic
#601F73 #892CA3 #AD40CC #C270D9 #D6A1E6

Accessibility & contrast

On white

4.79
#AD40CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#AD40CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AD40CC
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AD40CC#FFFFFF#000000##FFFFFF
##AD40CC1.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD0
Deuteranopia (green-blind)
#4576C9
Tritanopia (blue-blind)
#AC5B81
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ad40cc;
/* rgb */ color: rgb(173, 64, 204);
/* oklch */ color: oklch(58.1% 0.218 317.8);
Tailwind
colors: {
  custom: {
    50: '#c97edc',
    500: '#ad40cc',
    950: '#000000',
  },
}
SCSS
$custom: #ad40cc;
$custom-light: #c97edc;
$custom-dark: #000000;
JSON
{
  "hex": "#ad40cc",
  "rgb": {
    "r": 173,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 286.714,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.5809,
    "c": 0.21845,
    "h": 317.8
  },
  "luminance": 0.16911
}

Semantic roles & 50–950 ramp

primary
#AD40CC
secondary
#A3D295
accent
#E14769
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AD40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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