#AD31B6#AD31B6

#AD31B6 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.3% C 0.217 H 325.0°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#AD31B6
RGBrgb(173, 49, 182)
HSLhsl(296, 58%, 45%)
HSVhsv(296, 73%, 71%)
CMYKcmyk(4.9%, 73.1%, 0%, 28.6%)
CIE-LABlab(44.89, 65.33, -44.69)
CIE-LCHlch(44.89, 79.15, 325.63°)
OKLaboklab(55.34% 0.1779 -0.1244)
OKLCHoklch(55.34% 0.217 325)
XYZxyz(26.7748, 14.4600, 45.6277)
Luminance0.1446 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD31B6 #3AB631
analogous
#6B31B6 #AD31B6 #B6317C
triadic
#AD31B6 #B6AD31 #31B6AD
tetradic
#AD31B6 #B66B31 #3AB631 #317CB6
square
#AD31B6 #B66B31 #3AB631 #317CB6
split-complementary
#AD31B6 #7CB631 #31B66B
monochromatic
#511756 #7F2486 #AD31B6 #C853D1 #D884DE

Accessibility & contrast

On white

5.40
#AD31B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#AD31B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AD31B6
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AD31B6#FFFFFF#000000##FFFFFF
##AD31B61.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BA
Deuteranopia (green-blind)
#4D6FB3
Tritanopia (blue-blind)
#B14871
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ad31b6;
/* rgb */ color: rgb(173, 49, 182);
/* oklch */ color: oklch(55.3% 0.217 325.0);
Tailwind
colors: {
  custom: {
    50: '#c976cc',
    500: '#ad31b6',
    950: '#000000',
  },
}
SCSS
$custom: #ad31b6;
$custom-light: #c976cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ad31b6",
  "rgb": {
    "r": 173,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 295.94,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.55337,
    "c": 0.21706,
    "h": 325
  },
  "luminance": 0.14458
}

Semantic roles & 50–950 ramp

primary
#AD31B6
secondary
#81C77C
accent
#E14751
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AD31B6

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

Preview Lab → · Contrast checker → · Palette generator →

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