#AD1F9B#AD1F9B

#AD1F9B is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.5% C 0.214 H 334.3°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#AD1F9B
RGBrgb(173, 31, 155)
HSLhsl(308, 70%, 40%)
HSVhsv(308, 82%, 68%)
CMYKcmyk(0%, 82.1%, 10.4%, 32.2%)
CIE-LABlab(41.58, 66.24, -33.86)
CIE-LCHlch(41.58, 74.39, 332.93°)
OKLaboklab(52.5% 0.1928 -0.0929)
OKLCHoklch(52.5% 0.214 334.3)
XYZxyz(23.6402, 12.2329, 32.1201)
Luminance0.1223 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD1F9B #1FAD31
analogous
#781FAD #AD1F9B #AD1F54
triadic
#AD1F9B #9BAD1F #1F9BAD
tetradic
#AD1F9B #AD781F #1FAD31 #1F54AD
square
#AD1F9B #AD781F #1FAD31 #1F54AD
split-complementary
#AD1F9B #54AD1F #1FAD78
monochromatic
#450C3E #79166C #AD1F9B #DA2FC4 #E363D3

Accessibility & contrast

On white

6.09
#AD1F9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AD1F9B
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AD1F9B#FFFFFF#000000##FFFFFF
##AD1F9B1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B559E
Deuteranopia (green-blind)
#556998
Tritanopia (blue-blind)
#B62F5E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ad1f9b;
/* rgb */ color: rgb(173, 31, 155);
/* oklch */ color: oklch(52.5% 0.214 334.3);
Tailwind
colors: {
  custom: {
    50: '#ca6eb9',
    500: '#ad1f9b',
    950: '#000000',
  },
}
SCSS
$custom: #ad1f9b;
$custom-light: #ca6eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#ad1f9b",
  "rgb": {
    "r": 173,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 307.606,
    "s": 69.608,
    "l": 40
  },
  "oklch": {
    "l": 0.52497,
    "c": 0.214,
    "h": 334.3
  },
  "luminance": 0.12231
}

Semantic roles & 50–950 ramp

primary
#AD1F9B
secondary
#60C86D
accent
#EC523B
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140811
muted
#827B80

Preview Lab

Preview with #AD1F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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