#AD31B8#AD31B8

#AD31B8 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.5% C 0.219 H 324.4°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#AD31B8
RGBrgb(173, 49, 184)
HSLhsl(295, 58%, 46%)
HSVhsv(295, 73%, 72%)
CMYKcmyk(6%, 73.4%, 0%, 27.8%)
CIE-LABlab(45.00, 65.67, -45.68)
CIE-LCHlch(45.00, 80.00, 325.18°)
OKLaboklab(55.46% 0.1778 -0.1273)
OKLCHoklch(55.46% 0.219 324.4)
XYZxyz(26.9829, 14.5433, 46.7240)
Luminance0.1454 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD31B8 #3CB831
analogous
#6931B8 #AD31B8 #B8317F
triadic
#AD31B8 #B8AD31 #31B8AD
tetradic
#AD31B8 #B86931 #3CB831 #317FB8
square
#AD31B8 #B86931 #3CB831 #317FB8
split-complementary
#AD31B8 #7FB831 #31B869
monochromatic
#521757 #802488 #AD31B8 #C755D2 #D785DE

Accessibility & contrast

On white

5.37
#AD31B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#AD31B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AD31B8
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AD31B8#FFFFFF#000000##FFFFFF
##AD31B81.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BC
Deuteranopia (green-blind)
#4B6FB5
Tritanopia (blue-blind)
#B04972
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ad31b8;
/* rgb */ color: rgb(173, 49, 184);
/* oklch */ color: oklch(55.5% 0.219 324.4);
Tailwind
colors: {
  custom: {
    50: '#c976ce',
    500: '#ad31b8',
    950: '#000000',
  },
}
SCSS
$custom: #ad31b8;
$custom-light: #c976ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ad31b8",
  "rgb": {
    "r": 173,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 295.111,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55458,
    "c": 0.21866,
    "h": 324.4
  },
  "luminance": 0.14542
}

Semantic roles & 50–950 ramp

primary
#AD31B8
secondary
#83C87D
accent
#E14753
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AD31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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