#AD1F98#AD1F98

#AD1F98 is a mid, highly saturated purple. Relative luminance 0.121; OKLCH L 52.3% C 0.212 H 335.4°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#AD1F98
RGBrgb(173, 31, 152)
HSLhsl(309, 70%, 40%)
HSVhsv(309, 82%, 68%)
CMYKcmyk(0%, 82.1%, 12.1%, 32.2%)
CIE-LABlab(41.43, 65.80, -32.29)
CIE-LCHlch(41.43, 73.30, 333.86°)
OKLaboklab(52.34% 0.1927 -0.0883)
OKLCHoklch(52.34% 0.212 335.4)
XYZxyz(23.3914, 12.1334, 30.8097)
Luminance0.1213 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD1F98 #1FAD34
analogous
#7B1FAD #AD1F98 #AD1F51
triadic
#AD1F98 #98AD1F #1F98AD
tetradic
#AD1F98 #AD7B1F #1FAD34 #1F51AD
square
#AD1F98 #AD7B1F #1FAD34 #1F51AD
split-complementary
#AD1F98 #51AD1F #1FAD7B
monochromatic
#450C3D #79166A #AD1F98 #DA2FC1 #E363D0

Accessibility & contrast

On white

6.13
#AD1F98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#AD1F98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AD1F98
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AD1F98#FFFFFF#000000##FFFFFF
##AD1F981.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F559B
Deuteranopia (green-blind)
#566995
Tritanopia (blue-blind)
#B62D5C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ad1f98;
/* rgb */ color: rgb(173, 31, 152);
/* oklch */ color: oklch(52.3% 0.212 335.4);
Tailwind
colors: {
  custom: {
    50: '#ca6eb6',
    500: '#ad1f98',
    950: '#000000',
  },
}
SCSS
$custom: #ad1f98;
$custom-light: #ca6eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#ad1f98",
  "rgb": {
    "r": 173,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 308.873,
    "s": 69.608,
    "l": 40
  },
  "oklch": {
    "l": 0.52335,
    "c": 0.21196,
    "h": 335.4
  },
  "luminance": 0.12131
}

Semantic roles & 50–950 ramp

primary
#AD1F98
secondary
#60C86F
accent
#EC563B
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140811
muted
#827B80

Preview Lab

Preview with #AD1F98

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

Preview Lab → · Contrast checker → · Palette generator →

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