#5D3271#5D3271

#5D3271 is a dark, moderate purple. Relative luminance 0.058; OKLCH L 40.0% C 0.111 H 314.0°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#5D3271
RGBrgb(93, 50, 113)
HSLhsl(281, 39%, 32%)
HSVhsv(281, 56%, 44%)
CMYKcmyk(17.7%, 55.8%, 0%, 55.7%)
CIE-LABlab(28.90, 31.22, -28.74)
CIE-LCHlch(28.90, 42.43, 317.37°)
OKLaboklab(40.02% 0.0774 -0.0802)
OKLCHoklch(40.02% 0.111 314)
XYZxyz(8.6349, 5.8008, 16.2844)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3271 #467132
analogous
#3E3271 #5D3271 #713266
triadic
#5D3271 #715D32 #32715D
tetradic
#5D3271 #713E32 #467132 #326671
square
#5D3271 #713E32 #467132 #326671
split-complementary
#5D3271 #667132 #32713E
monochromatic
#170C1C #3A1F47 #5D3271 #80459B #9F63BA

Accessibility & contrast

On white

9.72
#5D3271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5D3271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3271
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3271#FFFFFF#000000##FFFFFF
##5D32711.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234273
Deuteranopia (green-blind)
#30456F
Tritanopia (blue-blind)
#5B3C4C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d3271;
/* rgb */ color: rgb(93, 50, 113);
/* oklch */ color: oklch(40.0% 0.111 314.0);
Tailwind
colors: {
  custom: {
    50: '#8d6c9a',
    500: '#5d3271',
    950: '#000000',
  },
}
SCSS
$custom: #5d3271;
$custom-light: #8d6c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3271",
  "rgb": {
    "r": 93,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 280.952,
    "s": 38.65,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40019,
    "c": 0.11146,
    "h": 314
  },
  "luminance": 0.05801
}

Semantic roles & 50–950 ramp

primary
#5D3271
secondary
#73A25D
accent
#CF597E
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C070E
muted
#7D7A7E

Preview Lab

Preview with #5D3271

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

Preview Lab → · Contrast checker → · Palette generator →

#5D3271 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva