#AD2798#AD2798

#AD2798 is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.9% C 0.205 H 335.5°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#AD2798
RGBrgb(173, 39, 152)
HSLhsl(309, 63%, 42%)
HSVhsv(309, 77%, 68%)
CMYKcmyk(0%, 77.5%, 12.1%, 32.2%)
CIE-LABlab(42.16, 63.69, -31.14)
CIE-LCHlch(42.16, 70.89, 333.95°)
OKLaboklab(52.86% 0.1864 -0.0851)
OKLCHoklch(52.86% 0.205 335.5)
XYZxyz(23.6269, 12.6044, 30.8882)
Luminance0.1260 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD2798 #27AD3C
analogous
#7F27AD #AD2798 #AD2755
triadic
#AD2798 #98AD27 #2798AD
tetradic
#AD2798 #AD7F27 #27AD3C #2755AD
square
#AD2798 #AD7F27 #27AD3C #2755AD
split-complementary
#AD2798 #55AD27 #27AD7F
monochromatic
#491040 #7B1C6C #AD2798 #D33EBC #DF70CD

Accessibility & contrast

On white

5.97
#AD2798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#AD2798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AD2798
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AD2798#FFFFFF#000000##FFFFFF
##AD27981.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27579B
Deuteranopia (green-blind)
#596B95
Tritanopia (blue-blind)
#B6325E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #ad2798;
/* rgb */ color: rgb(173, 39, 152);
/* oklch */ color: oklch(52.9% 0.205 335.5);
Tailwind
colors: {
  custom: {
    50: '#c971b6',
    500: '#ad2798',
    950: '#000000',
  },
}
SCSS
$custom: #ad2798;
$custom-light: #c971b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ad2798",
  "rgb": {
    "r": 173,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 309.403,
    "s": 63.208,
    "l": 41.569
  },
  "oklch": {
    "l": 0.5286,
    "c": 0.20489,
    "h": 335.5
  },
  "luminance": 0.12602
}

Semantic roles & 50–950 ramp

primary
#AD2798
secondary
#6AC679
accent
#E65B42
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AD2798

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

Preview Lab → · Contrast checker → · Palette generator →

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