#AD1F96#AD1F96

#AD1F96 is a mid, highly saturated purple. Relative luminance 0.121; OKLCH L 52.2% C 0.211 H 336.1°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#AD1F96
RGBrgb(173, 31, 150)
HSLhsl(310, 70%, 40%)
HSVhsv(310, 82%, 68%)
CMYKcmyk(0%, 82.1%, 13.3%, 32.2%)
CIE-LABlab(41.32, 65.52, -31.24)
CIE-LCHlch(41.32, 72.59, 334.51°)
OKLaboklab(52.23% 0.1926 -0.0853)
OKLCHoklch(52.23% 0.211 336.1)
XYZxyz(23.2290, 12.0684, 29.9543)
Luminance0.1207 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD1F96 #1FAD36
analogous
#7D1FAD #AD1F96 #AD1F4F
triadic
#AD1F96 #96AD1F #1F96AD
tetradic
#AD1F96 #AD7D1F #1FAD36 #1F4FAD
square
#AD1F96 #AD7D1F #1FAD36 #1F4FAD
split-complementary
#AD1F96 #4FAD1F #1FAD7D
monochromatic
#450C3C #791669 #AD1F96 #DA2FBE #E363CE

Accessibility & contrast

On white

6.15
#AD1F96 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#AD1F96 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AD1F96
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AD1F96#FFFFFF#000000##FFFFFF
##AD1F961.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215499
Deuteranopia (green-blind)
#576993
Tritanopia (blue-blind)
#B62C5B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ad1f96;
/* rgb */ color: rgb(173, 31, 150);
/* oklch */ color: oklch(52.2% 0.211 336.1);
Tailwind
colors: {
  custom: {
    50: '#ca6eb5',
    500: '#ad1f96',
    950: '#000000',
  },
}
SCSS
$custom: #ad1f96;
$custom-light: #ca6eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#ad1f96",
  "rgb": {
    "r": 173,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 309.718,
    "s": 69.608,
    "l": 40
  },
  "oklch": {
    "l": 0.52228,
    "c": 0.21063,
    "h": 336.1
  },
  "luminance": 0.12066
}

Semantic roles & 50–950 ramp

primary
#AD1F96
secondary
#60C871
accent
#EC583B
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140811
muted
#827B80

Preview Lab

Preview with #AD1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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