#5D2179#5D2179

#5D2179 is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.2% C 0.147 H 312.8°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#5D2179
RGBrgb(93, 33, 121)
HSLhsl(281, 57%, 30%)
HSVhsv(281, 73%, 47%)
CMYKcmyk(23.1%, 72.7%, 0%, 52.5%)
CIE-LABlab(26.14, 42.01, -38.24)
CIE-LCHlch(26.14, 56.81, 317.70°)
OKLaboklab(38.18% 0.0999 -0.1079)
OKLCHoklch(38.18% 0.147 312.8)
XYZxyz(8.5086, 4.7956, 18.5629)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2179 #3D7921
analogous
#312179 #5D2179 #792169
triadic
#5D2179 #795D21 #21795D
tetradic
#5D2179 #793121 #3D7921 #216979
square
#5D2179 #793121 #3D7921 #216979
split-complementary
#5D2179 #697921 #217931
monochromatic
#130719 #381449 #5D2179 #822EA9 #A247CD

Accessibility & contrast

On white

10.72
#5D2179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5D2179 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2179
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2179#FFFFFF#000000##FFFFFF
##5D21791.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7C
Deuteranopia (green-blind)
#193F77
Tritanopia (blue-blind)
#5A344A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d2179;
/* rgb */ color: rgb(93, 33, 121);
/* oklch */ color: oklch(38.2% 0.147 312.8);
Tailwind
colors: {
  custom: {
    50: '#8e62a0',
    500: '#5d2179',
    950: '#000000',
  },
}
SCSS
$custom: #5d2179;
$custom-light: #8e62a0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2179",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 121
  },
  "hsl": {
    "h": 280.909,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.38183,
    "c": 0.14707,
    "h": 312.8
  },
  "luminance": 0.04795
}

Semantic roles & 50–950 ramp

primary
#5D2179
secondary
#69AC4A
accent
#E04778
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050F
muted
#7E7A7E

Preview Lab

Preview with #5D2179

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

Preview Lab → · Contrast checker → · Palette generator →

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