#AD40A2#AD40A2

#AD40A2 is a mid, vivid purple. Relative luminance 0.152; OKLCH L 55.7% C 0.182 H 331.9°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#AD40A2
RGBrgb(173, 64, 162)
HSLhsl(306, 46%, 46%)
HSVhsv(306, 63%, 68%)
CMYKcmyk(0%, 63%, 6.4%, 32.2%)
CIE-LABlab(45.85, 56.24, -31.33)
CIE-LCHlch(45.85, 64.38, 330.87°)
OKLaboklab(55.69% 0.1609 -0.0858)
OKLCHoklch(55.69% 0.182 331.9)
XYZxyz(25.5885, 15.1616, 35.7542)
Luminance0.1516 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD40A2 #40AD4B
analogous
#8240AD #AD40A2 #AD406C
triadic
#AD40A2 #A2AD40 #40A2AD
tetradic
#AD40A2 #AD8240 #40AD4B #406CAD
square
#AD40A2 #AD8240 #40AD4B #406CAD
split-complementary
#AD40A2 #6CAD40 #40AD82
monochromatic
#541F4E #802F78 #AD40A2 #C664BC #D691CF

Accessibility & contrast

On white

5.21
#AD40A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#AD40A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AD40A2
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AD40A2#FFFFFF#000000##FFFFFF
##AD40A21.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B63A5
Deuteranopia (green-blind)
#5F729F
Tritanopia (blue-blind)
#B44A6B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ad40a2;
/* rgb */ color: rgb(173, 64, 162);
/* oklch */ color: oklch(55.7% 0.182 331.9);
Tailwind
colors: {
  custom: {
    50: '#c87cbe',
    500: '#ad40a2',
    950: '#000000',
  },
}
SCSS
$custom: #ad40a2;
$custom-light: #c87cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#ad40a2",
  "rgb": {
    "r": 173,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 306.055,
    "s": 45.992,
    "l": 46.471
  },
  "oklch": {
    "l": 0.55692,
    "c": 0.18237,
    "h": 331.9
  },
  "luminance": 0.1516
}

Semantic roles & 50–950 ramp

primary
#AD40A2
secondary
#87C28D
accent
#D65F52
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#130A12
muted
#827C81

Preview Lab

Preview with #AD40A2

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

Preview Lab → · Contrast checker → · Palette generator →

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