#AD31A2#AD31A2

#AD31A2 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.2% C 0.202 H 331.8°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#AD31A2
RGBrgb(173, 49, 162)
HSLhsl(305, 56%, 44%)
HSVhsv(305, 72%, 68%)
CMYKcmyk(0%, 71.7%, 6.4%, 32.2%)
CIE-LABlab(43.79, 62.03, -34.58)
CIE-LCHlch(43.79, 71.02, 330.86°)
OKLaboklab(54.2% 0.1777 -0.0951)
OKLCHoklch(54.2% 0.202 331.8)
XYZxyz(24.8535, 13.6915, 35.5091)
Luminance0.1369 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD31A2 #31AD3C
analogous
#7A31AD #AD31A2 #AD3164
triadic
#AD31A2 #A2AD31 #31A2AD
tetradic
#AD31A2 #AD7A31 #31AD3C #3164AD
square
#AD31A2 #AD7A31 #31AD3C #3164AD
split-complementary
#AD31A2 #64AD31 #31AD7A
monochromatic
#4E1649 #7D2375 #AD31A2 #CD4EC2 #DA7ED2

Accessibility & contrast

On white

5.62
#AD31A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#AD31A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AD31A2
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AD31A2#FFFFFF#000000##FFFFFF
##AD31A21.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295CA5
Deuteranopia (green-blind)
#586E9F
Tritanopia (blue-blind)
#B43F66
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ad31a2;
/* rgb */ color: rgb(173, 49, 162);
/* oklch */ color: oklch(54.2% 0.202 331.8);
Tailwind
colors: {
  custom: {
    50: '#c975be',
    500: '#ad31a2',
    950: '#000000',
  },
}
SCSS
$custom: #ad31a2;
$custom-light: #c975be;
$custom-dark: #000000;
JSON
{
  "hex": "#ad31a2",
  "rgb": {
    "r": 173,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 305.323,
    "s": 55.856,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54195,
    "c": 0.20152,
    "h": 331.8
  },
  "luminance": 0.13689
}

Semantic roles & 50–950 ramp

primary
#AD31A2
secondary
#77C37D
accent
#DF5649
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AD31A2

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

Preview Lab → · Contrast checker → · Palette generator →

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