#5D1676#5D1676

#5D1676 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.8% C 0.157 H 315.2°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#5D1676
RGBrgb(93, 22, 118)
HSLhsl(284, 69%, 27%)
HSVhsv(284, 81%, 46%)
CMYKcmyk(21.2%, 81.4%, 0%, 53.7%)
CIE-LABlab(24.35, 45.84, -39.22)
CIE-LCHlch(24.35, 60.32, 319.45°)
OKLaboklab(36.84% 0.1116 -0.1107)
OKLCHoklch(36.84% 0.157 315.2)
XYZxyz(8.0706, 4.2093, 17.5234)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1676 #2F7616
analogous
#2D1676 #5D1676 #76165F
triadic
#5D1676 #765D16 #16765D
tetradic
#5D1676 #762D16 #2F7616 #165F76
square
#5D1676 #762D16 #2F7616 #165F76
split-complementary
#5D1676 #5F7616 #16762D
monochromatic
#14051A #340C42 #5D1676 #8620AA #AC2ED8

Accessibility & contrast

On white

11.40
#5D1676 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5D1676 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1676
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1676#FFFFFF#000000##FFFFFF
##5D16761.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003679
Deuteranopia (green-blind)
#113C74
Tritanopia (blue-blind)
#5B2C46
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d1676;
/* rgb */ color: rgb(93, 22, 118);
/* oklch */ color: oklch(36.8% 0.157 315.2);
Tailwind
colors: {
  custom: {
    50: '#8f5d9e',
    500: '#5d1676',
    950: '#000000',
  },
}
SCSS
$custom: #5d1676;
$custom-light: #8f5d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1676",
  "rgb": {
    "r": 93,
    "g": 22,
    "b": 118
  },
  "hsl": {
    "h": 284.375,
    "s": 68.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.36842,
    "c": 0.15716,
    "h": 315.2
  },
  "luminance": 0.04209
}

Semantic roles & 50–950 ramp

primary
#5D1676
secondary
#59AC3C
accent
#EB3C6A
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5D1676

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

Preview Lab → · Contrast checker → · Palette generator →

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