#AD31B2#AD31B2

#AD31B2 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.1% C 0.214 H 326.3°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#AD31B2
RGBrgb(173, 49, 178)
HSLhsl(298, 57%, 45%)
HSVhsv(298, 72%, 70%)
CMYKcmyk(2.8%, 72.5%, 0%, 30.2%)
CIE-LABlab(44.66, 64.65, -42.70)
CIE-LCHlch(44.66, 77.48, 326.55°)
OKLaboklab(55.1% 0.178 -0.1186)
OKLCHoklch(55.1% 0.214 326.3)
XYZxyz(26.3673, 14.2970, 43.4817)
Luminance0.1429 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AD31B2 #36B231
analogous
#6C31B2 #AD31B2 #B23177
triadic
#AD31B2 #B2AD31 #31B2AD
tetradic
#AD31B2 #B26C31 #36B231 #3177B2
square
#AD31B2 #B26C31 #36B231 #3177B2
split-complementary
#AD31B2 #77B231 #31B26C
monochromatic
#501752 #7E2482 #AD31B2 #CA51CF #D981DC

Accessibility & contrast

On white

5.44
#AD31B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#AD31B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AD31B2
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AD31B2#FFFFFF#000000##FFFFFF
##AD31B21.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F60B6
Deuteranopia (green-blind)
#4F6FAF
Tritanopia (blue-blind)
#B2466F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ad31b2;
/* rgb */ color: rgb(173, 49, 178);
/* oklch */ color: oklch(55.1% 0.214 326.3);
Tailwind
colors: {
  custom: {
    50: '#c976c9',
    500: '#ad31b2',
    950: '#000000',
  },
}
SCSS
$custom: #ad31b2;
$custom-light: #c976c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ad31b2",
  "rgb": {
    "r": 173,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 297.674,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55099,
    "c": 0.21387,
    "h": 326.3
  },
  "luminance": 0.14295
}

Semantic roles & 50–950 ramp

primary
#AD31B2
secondary
#7CC579
accent
#E0484E
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AD31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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