#5D1776#5D1776

#5D1776 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.9% C 0.156 H 315.1°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#5D1776
RGBrgb(93, 23, 118)
HSLhsl(284, 67%, 28%)
HSVhsv(284, 81%, 46%)
CMYKcmyk(21.2%, 80.5%, 0%, 53.7%)
CIE-LABlab(24.48, 45.48, -39.02)
CIE-LCHlch(24.48, 59.92, 319.37°)
OKLaboklab(36.93% 0.1107 -0.1101)
OKLCHoklch(36.93% 0.156 315.1)
XYZxyz(8.0901, 4.2483, 17.5299)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1776 #307617
analogous
#2E1776 #5D1776 #76175F
triadic
#5D1776 #765D17 #17765D
tetradic
#5D1776 #762E17 #307617 #175F76
square
#5D1776 #762E17 #307617 #175F76
split-complementary
#5D1776 #5F7617 #17762E
monochromatic
#14051A #350D43 #5D1776 #8521A9 #AB31D7

Accessibility & contrast

On white

11.35
#5D1776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5D1776 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1776
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1776#FFFFFF#000000##FFFFFF
##5D17761.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d1776;
/* rgb */ color: rgb(93, 23, 118);
/* oklch */ color: oklch(36.9% 0.156 315.1);
Tailwind
colors: {
  custom: {
    50: '#8f5d9e',
    500: '#5d1776',
    950: '#000000',
  },
}
SCSS
$custom: #5d1776;
$custom-light: #8f5d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1776",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 118
  },
  "hsl": {
    "h": 284.211,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.36929,
    "c": 0.15611,
    "h": 315.1
  },
  "luminance": 0.04248
}

Semantic roles & 50–950 ramp

primary
#5D1776
secondary
#5AAB3E
accent
#EA3E6B
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5D1776

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

Preview Lab → · Contrast checker → · Palette generator →

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