#AD31C8#AD31C8

#AD31C8 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.5% C 0.232 H 319.7°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#AD31C8
RGBrgb(173, 49, 200)
HSLhsl(289, 61%, 49%)
HSVhsv(289, 76%, 78%)
CMYKcmyk(13.5%, 75.5%, 0%, 21.6%)
CIE-LABlab(45.98, 68.51, -53.44)
CIE-LCHlch(45.98, 86.89, 322.05°)
OKLaboklab(56.46% 0.1766 -0.15)
OKLCHoklch(56.46% 0.232 319.7)
XYZxyz(28.7559, 15.2524, 56.0617)
Luminance0.1525 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD31C8 #4CC831
analogous
#6231C8 #AD31C8 #C83198
triadic
#AD31C8 #C8AD31 #31C8AD
tetradic
#AD31C8 #C86231 #4CC831 #3198C8
square
#AD31C8 #C86231 #4CC831 #3198C8
split-complementary
#AD31C8 #98C831 #31C862
monochromatic
#581966 #822597 #AD31C8 #C25FD8 #D590E4

Accessibility & contrast

On white

5.18
#AD31C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#AD31C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AD31C8
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AD31C8#FFFFFF#000000##FFFFFF
##AD31C81.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CC
Deuteranopia (green-blind)
#3E71C5
Tritanopia (blue-blind)
#AD507B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ad31c8;
/* rgb */ color: rgb(173, 49, 200);
/* oklch */ color: oklch(56.5% 0.232 319.7);
Tailwind
colors: {
  custom: {
    50: '#ca77d9',
    500: '#ad31c8',
    950: '#000000',
  },
}
SCSS
$custom: #ad31c8;
$custom-light: #ca77d9;
$custom-dark: #000000;
JSON
{
  "hex": "#ad31c8",
  "rgb": {
    "r": 173,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 289.272,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.56464,
    "c": 0.23168,
    "h": 319.7
  },
  "luminance": 0.15251
}

Semantic roles & 50–950 ramp

primary
#AD31C8
secondary
#93CE86
accent
#E44461
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AD31C8

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

Preview Lab → · Contrast checker → · Palette generator →

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