#5D1E76#5D1E76

#5D1E76 is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.6% C 0.148 H 314.5°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#5D1E76
RGBrgb(93, 30, 118)
HSLhsl(283, 59%, 29%)
HSVhsv(283, 75%, 46%)
CMYKcmyk(21.2%, 74.6%, 0%, 53.7%)
CIE-LABlab(25.45, 42.68, -37.44)
CIE-LCHlch(25.45, 56.77, 318.74°)
OKLaboklab(37.62% 0.1036 -0.1055)
OKLCHoklch(37.62% 0.148 314.5)
XYZxyz(8.2479, 4.5640, 17.5825)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1E76 #37761E
analogous
#311E76 #5D1E76 #761E63
triadic
#5D1E76 #765D1E #1E765D
tetradic
#5D1E76 #76311E #37761E #1E6376
square
#5D1E76 #76311E #37761E #1E6376
split-complementary
#5D1E76 #63761E #1E7631
monochromatic
#130618 #371245 #5D1E76 #832AA7 #A640CE

Accessibility & contrast

On white

10.98
#5D1E76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5D1E76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1E76
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1E76#FFFFFF#000000##FFFFFF
##5D1E761.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003979
Deuteranopia (green-blind)
#1A3E74
Tritanopia (blue-blind)
#5B3148
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d1e76;
/* rgb */ color: rgb(93, 30, 118);
/* oklch */ color: oklch(37.6% 0.148 314.5);
Tailwind
colors: {
  custom: {
    50: '#8e609e',
    500: '#5d1e76',
    950: '#000000',
  },
}
SCSS
$custom: #5d1e76;
$custom-light: #8e609e;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1e76",
  "rgb": {
    "r": 93,
    "g": 30,
    "b": 118
  },
  "hsl": {
    "h": 282.955,
    "s": 59.459,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37623,
    "c": 0.1479,
    "h": 314.5
  },
  "luminance": 0.04564
}

Semantic roles & 50–950 ramp

primary
#5D1E76
secondary
#62AA46
accent
#E34572
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5D1E76

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

Preview Lab → · Contrast checker → · Palette generator →

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