#5D2177#5D2177

#5D2177 is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.0% C 0.145 H 313.7°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#5D2177
RGBrgb(93, 33, 119)
HSLhsl(282, 57%, 30%)
HSVhsv(282, 72%, 47%)
CMYKcmyk(21.8%, 72.3%, 0%, 53.3%)
CIE-LABlab(26.00, 41.56, -37.19)
CIE-LCHlch(26.00, 55.77, 318.17°)
OKLaboklab(38.04% 0.1002 -0.1048)
OKLCHoklch(38.04% 0.145 313.7)
XYZxyz(8.3873, 4.7470, 17.9236)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2177 #3B7721
analogous
#322177 #5D2177 #772166
triadic
#5D2177 #775D21 #21775D
tetradic
#5D2177 #773221 #3B7721 #216677
square
#5D2177 #773221 #3B7721 #216677
split-complementary
#5D2177 #667721 #217732
monochromatic
#130718 #381447 #5D2177 #822EA7 #A447CC

Accessibility & contrast

On white

10.77
#5D2177 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5D2177 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2177
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2177#FFFFFF#000000##FFFFFF
##5D21771.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7A
Deuteranopia (green-blind)
#1B3F75
Tritanopia (blue-blind)
#5A3349
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d2177;
/* rgb */ color: rgb(93, 33, 119);
/* oklch */ color: oklch(38.0% 0.145 313.7);
Tailwind
colors: {
  custom: {
    50: '#8e629f',
    500: '#5d2177',
    950: '#000000',
  },
}
SCSS
$custom: #5d2177;
$custom-light: #8e629f;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2177",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 119
  },
  "hsl": {
    "h": 281.86,
    "s": 56.579,
    "l": 29.804
  },
  "oklch": {
    "l": 0.38035,
    "c": 0.14499,
    "h": 313.7
  },
  "luminance": 0.04747
}

Semantic roles & 50–950 ramp

primary
#5D2177
secondary
#67AA4A
accent
#E04876
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050E
muted
#7E7A7E

Preview Lab

Preview with #5D2177

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

Preview Lab → · Contrast checker → · Palette generator →

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