#AD1F9C#AD1F9C

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

Color values

HEX#AD1F9C
RGBrgb(173, 31, 156)
HSLhsl(307, 70%, 40%)
HSVhsv(307, 82%, 68%)
CMYKcmyk(0%, 82.1%, 9.8%, 32.2%)
CIE-LABlab(41.64, 66.38, -34.38)
CIE-LCHlch(41.64, 74.75, 332.62°)
OKLaboklab(52.55% 0.1928 -0.0944)
OKLCHoklch(52.55% 0.215 333.9)
XYZxyz(23.7246, 12.2667, 32.5643)
Luminance0.1226 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD1F9C #1FAD30
analogous
#771FAD #AD1F9C #AD1F55
triadic
#AD1F9C #9CAD1F #1F9CAD
tetradic
#AD1F9C #AD771F #1FAD30 #1F55AD
square
#AD1F9C #AD771F #1FAD30 #1F55AD
split-complementary
#AD1F9C #55AD1F #1FAD77
monochromatic
#450C3E #79166D #AD1F9C #DA2FC5 #E363D4

Accessibility & contrast

On white

6.08
#AD1F9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#AD1F9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AD1F9C
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AD1F9C#FFFFFF#000000##FFFFFF
##AD1F9C1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19559F
Deuteranopia (green-blind)
#546999
Tritanopia (blue-blind)
#B5305E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ad1f9c;
/* rgb */ color: rgb(173, 31, 156);
/* oklch */ color: oklch(52.6% 0.215 333.9);
Tailwind
colors: {
  custom: {
    50: '#ca6eb9',
    500: '#ad1f9c',
    950: '#000000',
  },
}
SCSS
$custom: #ad1f9c;
$custom-light: #ca6eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#ad1f9c",
  "rgb": {
    "r": 173,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 307.183,
    "s": 69.608,
    "l": 40
  },
  "oklch": {
    "l": 0.52552,
    "c": 0.21468,
    "h": 333.9
  },
  "luminance": 0.12265
}

Semantic roles & 50–950 ramp

primary
#AD1F9C
secondary
#60C86C
accent
#EC513B
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140811
muted
#827B80

Preview Lab

Preview with #AD1F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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