#AD1F8E#AD1F8E

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

Color values

HEX#AD1F8E
RGBrgb(173, 31, 142)
HSLhsl(313, 70%, 40%)
HSVhsv(313, 82%, 68%)
CMYKcmyk(0%, 82.1%, 17.9%, 32.2%)
CIE-LABlab(40.93, 64.41, -27.00)
CIE-LCHlch(40.93, 69.84, 337.26°)
OKLaboklab(51.82% 0.1919 -0.0732)
OKLCHoklch(51.82% 0.205 339.1)
XYZxyz(22.6067, 11.8195, 26.6768)
Luminance0.1182 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD1F8E #1FAD3E
analogous
#851FAD #AD1F8E #AD1F47
triadic
#AD1F8E #8EAD1F #1F8EAD
tetradic
#AD1F8E #AD851F #1FAD3E #1F47AD
square
#AD1F8E #AD851F #1FAD3E #1F47AD
split-complementary
#AD1F8E #47AD1F #1FAD85
monochromatic
#450C39 #791663 #AD1F8E #DA2FB5 #E363C7

Accessibility & contrast

On white

6.24
#AD1F8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AD1F8E
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AD1F8E#FFFFFF#000000##FFFFFF
##AD1F8E1.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295391
Deuteranopia (green-blind)
#5B688B
Tritanopia (blue-blind)
#B72756
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ad1f8e;
/* rgb */ color: rgb(173, 31, 142);
/* oklch */ color: oklch(51.8% 0.205 339.1);
Tailwind
colors: {
  custom: {
    50: '#ca6daf',
    500: '#ad1f8e',
    950: '#000000',
  },
}
SCSS
$custom: #ad1f8e;
$custom-light: #ca6daf;
$custom-dark: #000000;
JSON
{
  "hex": "#ad1f8e",
  "rgb": {
    "r": 173,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 313.099,
    "s": 69.608,
    "l": 40
  },
  "oklch": {
    "l": 0.51815,
    "c": 0.20542,
    "h": 339.1
  },
  "luminance": 0.11817
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AD1F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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