#AD1F8D#AD1F8D

#AD1F8D is a mid, highly saturated pink. Relative luminance 0.118; OKLCH L 51.8% C 0.205 H 339.5°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#AD1F8D
RGBrgb(173, 31, 141)
HSLhsl(314, 70%, 40%)
HSVhsv(314, 82%, 68%)
CMYKcmyk(0%, 82.1%, 18.5%, 32.2%)
CIE-LABlab(40.88, 64.28, -26.46)
CIE-LCHlch(40.88, 69.51, 337.63°)
OKLaboklab(51.77% 0.1918 -0.0717)
OKLCHoklch(51.77% 0.205 339.5)
XYZxyz(22.5319, 11.7896, 26.2831)
Luminance0.1179 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD1F8D #1FAD3F
analogous
#861FAD #AD1F8D #AD1F46
triadic
#AD1F8D #8DAD1F #1F8DAD
tetradic
#AD1F8D #AD861F #1FAD3F #1F46AD
square
#AD1F8D #AD861F #1FAD3F #1F46AD
split-complementary
#AD1F8D #46AD1F #1FAD86
monochromatic
#450C38 #791663 #AD1F8D #DA2FB3 #E363C6

Accessibility & contrast

On white

6.25
#AD1F8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#AD1F8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AD1F8D
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AD1F8D#FFFFFF#000000##FFFFFF
##AD1F8D1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5290
Deuteranopia (green-blind)
#5B688A
Tritanopia (blue-blind)
#B72656
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ad1f8d;
/* rgb */ color: rgb(173, 31, 141);
/* oklch */ color: oklch(51.8% 0.205 339.5);
Tailwind
colors: {
  custom: {
    50: '#ca6dae',
    500: '#ad1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #ad1f8d;
$custom-light: #ca6dae;
$custom-dark: #000000;
JSON
{
  "hex": "#ad1f8d",
  "rgb": {
    "r": 173,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 313.521,
    "s": 69.608,
    "l": 40
  },
  "oklch": {
    "l": 0.51765,
    "c": 0.20478,
    "h": 339.5
  },
  "luminance": 0.11787
}

Semantic roles & 50–950 ramp

primary
#AD1F8D
secondary
#60C877
accent
#EC633B
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AD1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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