#AD1F9E#AD1F9E

#AD1F9E is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.7% C 0.216 H 333.2°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#AD1F9E
RGBrgb(173, 31, 158)
HSLhsl(306, 70%, 40%)
HSVhsv(306, 82%, 68%)
CMYKcmyk(0%, 82.1%, 8.7%, 32.2%)
CIE-LABlab(41.74, 66.67, -35.41)
CIE-LCHlch(41.74, 75.49, 332.03°)
OKLaboklab(52.66% 0.1929 -0.0974)
OKLCHoklch(52.66% 0.216 333.2)
XYZxyz(23.8953, 12.3350, 33.4635)
Luminance0.1233 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD1F9E #1FAD2E
analogous
#751FAD #AD1F9E #AD1F57
triadic
#AD1F9E #9EAD1F #1F9EAD
tetradic
#AD1F9E #AD751F #1FAD2E #1F57AD
square
#AD1F9E #AD751F #1FAD2E #1F57AD
split-complementary
#AD1F9E #57AD1F #1FAD75
monochromatic
#450C3F #79166F #AD1F9E #DA2FC8 #E363D6

Accessibility & contrast

On white

6.06
#AD1F9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#AD1F9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AD1F9E
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AD1F9E#FFFFFF#000000##FFFFFF
##AD1F9E1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1656A1
Deuteranopia (green-blind)
#53699B
Tritanopia (blue-blind)
#B5315F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ad1f9e;
/* rgb */ color: rgb(173, 31, 158);
/* oklch */ color: oklch(52.7% 0.216 333.2);
Tailwind
colors: {
  custom: {
    50: '#ca6ebb',
    500: '#ad1f9e',
    950: '#000000',
  },
}
SCSS
$custom: #ad1f9e;
$custom-light: #ca6ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#ad1f9e",
  "rgb": {
    "r": 173,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 306.338,
    "s": 69.608,
    "l": 40
  },
  "oklch": {
    "l": 0.52663,
    "c": 0.21605,
    "h": 333.2
  },
  "luminance": 0.12333
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AD1F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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