#AD40C8#AD40C8

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

Color values

HEX#AD40C8
RGBrgb(173, 64, 200)
HSLhsl(288, 55%, 52%)
HSVhsv(288, 68%, 78%)
CMYKcmyk(13.5%, 68%, 0%, 21.6%)
CIE-LABlab(47.91, 63.03, -50.35)
CIE-LCHlch(47.91, 80.67, 321.38°)
OKLaboklab(57.84% 0.1621 -0.141)
OKLCHoklch(57.84% 0.215 319)
XYZxyz(29.4909, 16.7225, 56.3067)
Luminance0.1672 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD40C8 #5BC840
analogous
#6940C8 #AD40C8 #C8409F
triadic
#AD40C8 #C8AD40 #40C8AD
tetradic
#AD40C8 #C86940 #5BC840 #409FC8
square
#AD40C8 #C86940 #5BC840 #409FC8
split-complementary
#AD40C8 #9FC840 #40C869
monochromatic
#5E206E #872D9D #AD40C8 #C170D6 #D69FE3

Accessibility & contrast

On white

4.83
#AD40C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AD40C8
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AD40C8#FFFFFF#000000##FFFFFF
##AD40C81.004.834.344.83
#FFFFFF4.831.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACC
Deuteranopia (green-blind)
#4975C5
Tritanopia (blue-blind)
#AD597F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ad40c8;
/* rgb */ color: rgb(173, 64, 200);
/* oklch */ color: oklch(57.8% 0.215 319.0);
Tailwind
colors: {
  custom: {
    50: '#c97dd9',
    500: '#ad40c8',
    950: '#000000',
  },
}
SCSS
$custom: #ad40c8;
$custom-light: #c97dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#ad40c8",
  "rgb": {
    "r": 173,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 288.088,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.5784,
    "c": 0.21487,
    "h": 319
  },
  "luminance": 0.16721
}

Semantic roles & 50–950 ramp

primary
#AD40C8
secondary
#A0D094
accent
#DF4967
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AD40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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