#AD1F9D#AD1F9D

#AD1F9D is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.6% C 0.215 H 333.6°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#AD1F9D
RGBrgb(173, 31, 157)
HSLhsl(307, 70%, 40%)
HSVhsv(307, 82%, 68%)
CMYKcmyk(0%, 82.1%, 9.2%, 32.2%)
CIE-LABlab(41.69, 66.53, -34.89)
CIE-LCHlch(41.69, 75.12, 332.32°)
OKLaboklab(52.61% 0.1929 -0.0958)
OKLCHoklch(52.61% 0.215 333.6)
XYZxyz(23.8096, 12.3007, 33.0120)
Luminance0.1230 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD1F9D #1FAD2F
analogous
#761FAD #AD1F9D #AD1F56
triadic
#AD1F9D #9DAD1F #1F9DAD
tetradic
#AD1F9D #AD761F #1FAD2F #1F56AD
square
#AD1F9D #AD761F #1FAD2F #1F56AD
split-complementary
#AD1F9D #56AD1F #1FAD76
monochromatic
#450C3F #79166E #AD1F9D #DA2FC7 #E363D5

Accessibility & contrast

On white

6.07
#AD1F9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#AD1F9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AD1F9D
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AD1F9D#FFFFFF#000000##FFFFFF
##AD1F9D1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1856A0
Deuteranopia (green-blind)
#54699A
Tritanopia (blue-blind)
#B5305F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ad1f9d;
/* rgb */ color: rgb(173, 31, 157);
/* oklch */ color: oklch(52.6% 0.215 333.6);
Tailwind
colors: {
  custom: {
    50: '#ca6eba',
    500: '#ad1f9d',
    950: '#000000',
  },
}
SCSS
$custom: #ad1f9d;
$custom-light: #ca6eba;
$custom-dark: #000000;
JSON
{
  "hex": "#ad1f9d",
  "rgb": {
    "r": 173,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 306.761,
    "s": 69.608,
    "l": 40
  },
  "oklch": {
    "l": 0.52607,
    "c": 0.21536,
    "h": 333.6
  },
  "luminance": 0.12299
}

Semantic roles & 50–950 ramp

primary
#AD1F9D
secondary
#60C86B
accent
#EC4F3B
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AD1F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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